How To Access the request object inside a GraphQL resolver Function (Apollo-Server-Express)

If you’re working with GraphQL (a query language for your API), and you’re using apollo-server-express, You may notice unlike express-graphql, request object will not be available in context, if it’s not defined inĀ apollo-sever-express middleware, but don’t worry, if want request object available in context, just use following quick hack, not really and you’re done. normalĀ apollo-server-express … Read more