-
Expected Behaviour Actual Behaviour Debug Information Further Information |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Disclaimer: I have no experience with graphql-compose whatsoever. To provide a contextValue to graphql resolvers, you have to supply the The Line 738 in f2a92af In your case (from the referenced issue), the roots option can be completely omitted as it does nothing anyway.
|
Beta Was this translation helpful? Give feedback.
Disclaimer: I have no experience with graphql-compose whatsoever.
To provide a contextValue to graphql resolvers, you have to supply the
context
option. Please check the "ws server usage with custom context value" recipe.The
roots
option is a convenience that gets injected to the rootValue during graphql's execute or subscribe by operation type.graphql-ws/src/server.ts
Line 738 in f2a92af
In your case (from the referenced issue), the
roots
option can be completely omitted as it does nothing anyway.arg2
(akaargs
) are arguments provided to the field in the GraphQL query. You supply them from the client.