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
graphqlExpress has no way of accepting express request through context #420
Comments
@pikelnys if you want, you can pass the
|
@helfer wait how? i can't figure that out |
@Muphet when your importing graphqlExpress you need to do |
express-graphql
passes the express request as a default value forcontext
. This is very convenient when I want to do something such as check a user's authentication from the request header.However, it does not appear that there is a way to get a handle on the express request object from inside a resolver when using
graphql-server-express
. Is there a specific reason you left this out? Am I missing some other way to get a handle on thereq
?Thanks.
The text was updated successfully, but these errors were encountered: