How to get incremental changes when subscribing to table #517
-
I am sifting through the documentation but can not find anything about how to get incremental changes. This is how I instantiate my client:
This is how I subscribe:
And this is myQuery:
This actually works but it gives me the whole table when something changes but actually this is a total overload for me. I just want the changes so if a row was added it should give me the row and if something was deleted I want the data that has been deleted. Is there something I overlooked? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is more of a question of GraphQL than it is of transport. You have to visit your subscription implementation in GraphQL and investigate how to refactor it to stream incremental updates instead. |
Beta Was this translation helpful? Give feedback.
This is more of a question of GraphQL than it is of transport.
graphql-ws
is just a transport library, allowing you to get realtime updates from GraphQL.You have to visit your subscription implementation in GraphQL and investigate how to refactor it to stream incremental updates instead.