NestJs with Graphql not working #102
Unanswered
douglasgomes98
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hey there. The error is not related to graphql-sse, your subscriptions implementation is not working. I am not very familiar with NestJS, but can you maybe try changing the subscription publish like this? - await pubsub.publish(topic, { id, message });
+ await pubsub.publish(topic, { receiveMessage: { id, message } }); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Screenshot
Visualising is always helpful.
https://codesandbox.io/p/github/douglasgomes98/nest-graphq-sse/main
I created a codesandox to help with reproduction.
By default, NestJs uses express as a server and I'm using Apollo Graphql
Beta Was this translation helpful? Give feedback.
All reactions