Skip to content

How to use offlineExchange to only store specific query ? #3278

Answered by kitten
kai-you2 asked this question in Q&A
Discussion options

You must be logged in to vote

You can write a custom storage to not persist some of the data, or change the requestPolicy per query. However, partial caching or partial storage isn't part of Graphcache.

Even if it would be, a custom storage makes more sense in these cases. While how the data is stored is technically an implementation detail, the problem with allowing this to be customised anyway is that the data will be cached either way until your application restarts, so there's little point in turning this into a specific API.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kai-you2
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