-
How is a subscription defined in SDL resolved by graphql-ws? I've put together an example here: https://github.com/jmc420/graphql_examples/blob/main/graphql-ws/src/server.ts The schema is defined thus:
The resolvers that work for graph-http are defined thus:
The resolver for graphql-ws requires the word "subscription":
When I invoke the subscription via Postman, I get the error: "Cannot return null for non-nullable field Subscription.greeting" Why's the greeting returning null? |
Beta Was this translation helpful? Give feedback.
Answered by
enisdenjo
Mar 7, 2023
Replies: 1 comment
-
Duplicate of #460. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
enisdenjo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duplicate of #460.