The context being passed into a graphql-middleware resolver does not have a request property. It only has a _extensionStack property. How am I supposed to get at the request headers from a middleware?
Sam
10/26/2018, 6:44 PM
I wasn't passing any context through the ApolloServer. This fixed it...
Copy code
const server = new ApolloServer({
schema: schemaWithMiddleware,
context: context => context,
});