Skip to content

how to set headers to the http post request? #6293

Answered by dotansimha
wilmerxu asked this question in Q&A
Discussion options

You must be logged in to vote

You are passing the schema as GraphQLSchema object when using the programmatic usage. I'm not sure I understand what headers you refer to.
If you refer to the request's header, please check Apollo's documentation, it should be done using ApolloLink and the instance of ApolloClient, and has nothing to do with codegen.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Urigo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants