apollographql / graphql-subscriptions

:newspaper: A small module that implements GraphQL subscriptions for Node.js
MIT License
1.59k stars 133 forks source link

Cannot apply fragment on subscription #178

Open stevefan1999-personal opened 5 years ago

stevefan1999-personal commented 5 years ago

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.

grantwwu commented 5 years ago

Can you provide a minimal reproducing example? I don't know why apollo-bot said there was a reproduction.

elderapo commented 5 years ago

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.

elderapo commented 5 years ago

Ok, so a few observations:

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?