Subscription Context #207
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yap, you can use the This value is then used as the GraphQL execution arguments Lines 718 to 723 in 79bd429 |
Beta Was this translation helpful? Give feedback.
Yap, you can use the
context
server option (there is also a "ws server usage with custom context value" recipe). You can either provide it with a static context or a function which returns a context.This value is then used as the GraphQL execution arguments
contextValue
:graphql-ws/src/server.ts
Lines 718 to 723 in 79bd429