Use the GraphQL Context Argument to Get Authorization Information

InstructorRyan Chenkie

Share this video with your friends

Send Tweet

GraphQL resolvers have an argument called "context" which is shared between resolvers and can be used to store authorization information, database connection information, and more. Learn how to use the context argument to get authorization information from a JSON Web Token. Use the authorization information to scope the data sent back in the resolver to that which belongs to the requesting user.