Show todos immediately after subscribe() to a channel and publish() to the same channel #2268
Unanswered
adityapant1286
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think this is the wrong repo. Could you create an issue on the GraphQL Yoga repo with a reproduction on CodeSandbox or StackBlitz? Thanks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am fairly new to using graphql-yoga, 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.
The documentation mentioned the schema as a parameter. The schema definition required for this library is missing. Need some inputs on what am I missing.
Screenshot
Code Snippets
Schema definition
Server backend
Expected Behaviour
It should show the initial todo item as soon as it has subscribed and published in schema definition.
Todo item - declared in schema
Actual Behaviour
It does not show/return initial todo item.
After adding a new todo (using
addTodo
) it shows two todo items. So I believe it is unable to return initial whenever refresh the browser or run subscribe on Yoga Graphiql explorer.Beta Was this translation helpful? Give feedback.
All reactions