-
Hi, I tried to use Did anyone know how to acheive the behavior ? One of the idea I came up with is to write a custom exchange to determine different query and store the data, but I think the offlineExchange should have these kinds of config for us to use ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can write a custom storage to not persist some of the data, or change the 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. |
Beta Was this translation helpful? Give feedback.
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.