You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #1392
// Please notice the following param -> 'context'
const server: ApolloServer = new ApolloServer({
typeDefs: xx,
resolvers: xx,
context: ({ ctx }) => ctx, // this is the key part
});
Query: {
user(root, { id }, ctx) {
console.log(ctx);
},
}
ctx is :
not koa.context
The text was updated successfully, but these errors were encountered: