Skip to content

Insert into pagination after create #1313

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

You must be logged in to vote

you can use the cache.inspectFields method for this. It allows you to inspect which fields the cache knows about which means that it'll help you identify which cache fields to update. https://formidable.com/open-source/urql/docs/graphcache/cache-updates/#updating-many-unknown-links

This is the same method by which our pagination resolvers (like relayPagination) determines which pages to merge.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Miloshinjo
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