The context being passed into a graphql-middleware...
# orm-help
s
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?
I wasn't passing any context through the ApolloServer. This fixed it...
Copy code
const server = new ApolloServer({
  schema: schemaWithMiddleware,
  context: context => context,
});