-
Notifications
You must be signed in to change notification settings - Fork 2k
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
How to pass koa context to graphql? #1392
Comments
Hi, In the ApolloServer context method ( Then, in your resolver, you try to access So, either you access the context in the resolver this way :
Or you return directly the koa context in the ApolloServer context method : Bye |
It seems this has been resolved. |
Hello, I use koa and koa-passport for authorization via steam.
But koa and graphql have different contexts.
How to pass koa context to graphql?
in console:
Apollo server:
my test resolver:
in console:
undefined
The text was updated successfully, but these errors were encountered: