Skip to content

Subscriptions and persisted queries #481

Answered by enisdenjo
staldera asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, thanks for writing! The reason query is not nullable is because GraphQL over WebSocket spec follows/inherits the GraphQL over HTTP spec - which also disallows having null for query field in request params. Generally wanting to have the query field ignored, you'd set an empty string ({ "query": "" }).

You're welcome to jump into the GraphQL over HTTP work group discussion about the optional query field.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by enisdenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants