Skip to content

Reevaluate filtered query result based on some changed data #1672

Answered by kitten
hognevevle asked this question in Q&A
Discussion options

You must be logged in to vote

Hiya 👋

I believe you're correct on all points. If you have subscriptions set up then with Graphcache the normalised cache structure will update any matching entities, but lists will be left out of that as a cache can't assme how lists will update in reaction to changing messages.

In these cases you'd need to write manual cache updates:

This would require you to write some small pieces of logic that update your lists to exclude changing items depending on their updated properties.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hognevevle
Comment options

Answer selected by hognevevle
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