add context subscription
This commit is contained in:
@@ -93,7 +93,10 @@ import { initContextCache } from '@pothos/core';
|
||||
},
|
||||
context: async ({ req }: { req: Request }) => ({
|
||||
...initContextCache(),
|
||||
me: await graphqlService.acquireContext(req),
|
||||
isSubscription: false,
|
||||
http: {
|
||||
me: await graphqlService.acquireContext(req),
|
||||
},
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user