Skip to content

[Question] Recommended approach for invalidating lists after a change? #952

Answered by n1ru4l
tetchel asked this question in Q&A
Discussion options

You must be logged in to vote

@tetchel This is solved via the https://github.com/n1ru4l/graphql-live-query/tree/main/packages/graphql-live-query-patch-jsondiffpatch middleware that ensures only patches are sent over the wire.

The trade-off here is that the server always stores the last execution result and diffs it against the new execution result. Hence there is more overhead going on on the server, but in contrast, the client is free of subscription update logic.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by n1ru4l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #948 on July 29, 2022 09:52.