add context subscription

This commit is contained in:
2024-10-29 02:21:18 +07:00
parent ba54d3466c
commit 9423a36eeb
7 changed files with 58 additions and 19 deletions

View File

@@ -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),
},
}),
}),
}),