Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Update Tutorial-Authentication.md #648
The current GraphQL Authentication and Express Middleware documentation states the "request" object is passed as the second argument in a resolver.
However, the express-graphql (v0.7.1 ) documentation states the "request" object is passed as the third argument to resolvers. See here: https://github.com/graphql/express-graphql#combining-with-other-express-middleware
I've tested this and it appears the express-graphql documentation is correct.
Proposed File Change
I've updated this page to match the express-graphql documentation.
Please let me know if you have any questions.
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.
If you have received this in error or have any questions, please contact us at firstname.lastname@example.org. Thanks!