Skip to content

graphCache not working as expected #1441

Answered by JoviDeCroock
bubbaspaarx asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

This is a side-effect of not knowing what the author.books array contains as a type, let's look at how this works.

When we invalidate the book this book becomes ['Book:1', null] as we have invalidated Book:2, if your author.books type is [Book]! we can safely render the partial data (requires schema-awareness) if it's [Book!]! we can't safely render partial data.

So invalidate won't work for this particular case, a better solution for this specific case would be to get the affected entity in question and update its array with updateQuery.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@bubbaspaarx
Comment options

@bubbaspaarx
Comment options

@kitten
Comment options

@JoviDeCroock
Comment options

@bubbaspaarx
Comment options

Answer selected by JoviDeCroock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants