Question: Unable to get initial data using subscription #408
-
I am fairly new to using graphql-ws, so forgive me if this is a naive question or mistake from my side. Libraries used:Backend
Frontend
My understanding, there is something I am missing in the schema definition which is not showing the todo list when tried accessing Yoga Graphiql explorer. ScreenshotCode SnippetsSchema definition
Server backend
Expected BehaviourIt should show the initial todo item as soon as it has subscribed and published in schema definition.
Actual Behaviour |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This seems like a question about GraphQL subscriptions in general or Are you sure that |
Beta Was this translation helpful? Give feedback.
This seems like a question about GraphQL subscriptions in general or
graphql-yoga
, rather thangraphql-ws
.Are you sure that
createPubSub
has a queue? Meaning that if something gets published before anyone is subscribed, it would get queued up and flushed when someone finally subscribes?