Skip to content

How to manually normalize data into Graphcache? #1362

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

You must be logged in to vote

Hey,

We aim to have graphCache be a representation of your server-side state, this makes a lot of cases more deterministic, hence why we don't allow cache updates outside of mutations/subscriptions.

My advice most often would be to write this inside these transformations inside of React-land, this way the data will keep representing the query.

If the transformation is just a data-formatter or something you could use the resolvers API.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ersinakinci
Comment options

@JoviDeCroock
Comment options

@ersinakinci
Comment options

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