Tag: koa
-
Apollo Server 4: How to Mount Koa’s Integration at the URL Path `/graphql`
0 I’m migrating from Apollo Server 3 to Apollo Server 4 and using Koa.js as my framework and @as-integrations/koa middleware. I’ve encountered an issue where I can’t configure my Koa integration to listen to the path /graphql correctly. In Apollo Server 4, the documentation states that if you want your server to listen on a…
-
Apollo Server 4 / Koa – Cannot read properties of undefined (reading ‘headers’)
0 i upgraded to apollo 4 and i am using koa js. But there are some problems with context. Authentication process does not work. Authentication time I get an error like this: **"message": "Cannot read properties of undefined (reading ‘headers’)" "code": "INTERNAL_SERVER_ERROR", @[email protected][email protected]/node_modules/@apollo/server/dist/esm/utils/schemaInstrumentation.js:36:28) backend/graphql/resolvers/posts.js:31:20 backend/util/check-auth.js:5:36** import { ApolloServer } from "@apollo/server"; import { ApolloServerPluginDrainHttpServer }…