Skip to content

Equivalent for readFragment for retrieving node data from cache #1338

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

You must be logged in to vote

Hey,

If you are using graphCache this is possible through the resolvers api. When we have a user in cache through a list query,... we can hook up the details query like this https://formidable.com/open-source/urql/docs/graphcache/computed-queries/#resolve (scroll down to the todo key)

We have had an RFC for a relay-like useFragment but ended up deciding against it.

We chose not to attach it to the client because this won't work with a document-cache.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@momakes2
Comment options

@momakes2
Comment options

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