How to invalidate all entities of a given type? #3143
Answered
by
lsarni
affanshahid
asked this question in
Q&A
-
What would I use in the updates section of the graphcache exchange to manually invalidate all entities of a given type? {
updates: {
Mutation: {
delete_all_todos: (_result, _args, cache) => {
cache.invalidate({ __typename: 'todo' }); // what goes here?
},
},
},
} |
Beta Was this translation helpful? Give feedback.
Answered by
lsarni
Jun 25, 2024
Replies: 1 comment
-
Here it explains https://commerce.nearform.com/open-source/urql/docs/graphcache/cache-updates/#invalidating-a-type
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JoviDeCroock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here it explains https://commerce.nearform.com/open-source/urql/docs/graphcache/cache-updates/#invalidating-a-type