Open stevefan1999-personal opened 5 years ago
Can you provide a minimal reproducing example? I don't know why apollo-bot said there was a reproduction.
Here is a minimal reproducible repo. For some reason for anonymous subscriptions root
value passed to subscriptions resolver is undefined
.
It's working just fine with named subscriptions.
Ok, so a few observations:
graphql-subscriptions
package.graphql-playground
client sends an http request instead of opening a new websocket connection if the subscription query is anonymous. If subscription query is named it always opens a new websocket connection.graphiql
client always sends an http request. No matter if the subscription query is named or anonymous.Is even sending a subscription query as http request compliant with GraphQL specification? Any ideas where this issue should be forwarded to? apollo-server
or graphql
?
This is a X-Issue from https://github.com/19majkel94/type-graphql/issues/159#issue-36454900, please read that issue first, because it seems like graphql-subscriptions is the one to blame.