Repository navigation
GraphCache"updates" mutation updater not being called #3870
|
I love URQL. It has been so easy to work with, and using schema-awareness, I everything just works out of the box. I'm trying to optimize an insert, and reading https://urql.dev/docs/graphcache/cache-updates it sounds like if I add an updater, I can prevent GraphCache from fetching related queries. Copying the code verbatim then changing the field name, the function is not called when a mutation occurs - there is no console message logged. Thank you much! |
Replies: 1 comment
|
It turns out "Mutation" should be "mutation_root" by looking at the schema. This is "Nhost" which uses Hasura. |
It turns out "Mutation" should be "mutation_root" by looking at the schema. This is "Nhost" which uses Hasura.
The updater now looks something like this and prevents the query from making any network requests: