-
Hi, I currently have a setup where I use Relay + graphql-ws in my frontend and HotChocolate in my backend. Then graphql-ws comes in, as I'm trying use websockets for the subscriptions. I create a client and try to use it to subscribe:
Sadly, Edit: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey, thanks for writing! The reason You're welcome to jump into the GraphQL over HTTP work group discussion about the optional query field. |
Beta Was this translation helpful? Give feedback.
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 forquery
field in request params. Generally wanting to have thequery
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.