how to set headers to the http post request? #6293
-
use codegen from @graphql-codegen/core,how can i set headers to the graphql http post request?
|
Beta Was this translation helpful? Give feedback.
Answered by
dotansimha
Jul 11, 2021
Replies: 1 comment
-
You are passing the schema as |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Urigo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.