Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apollo GraphQL Server Context is Empty #176

Closed
phr0zenx opened this issue Mar 26, 2021 · 1 comment
Closed

Apollo GraphQL Server Context is Empty #176

phr0zenx opened this issue Mar 26, 2021 · 1 comment

Comments

@phr0zenx
Copy link

It seems that I could not extract the headers (i.e. Authorization) I've passed to Apollo GraphQL Server in order to hand over to the HTTP callers.
Looking into the context object from swagger-to-graphql, there isn't anything that I can use or extract to retrieve said information.
context object content as follows:
{ _extensionStack: GraphQLExtensionStack { extensions: [] } }
Is there any solution to this?

@phr0zenx
Copy link
Author

ApolloGQL handles it's context differently. Found the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant