Course lesson

Update GraphCache cacheExchange Directly After a urql Mutation

We'll define a custom update function to run when the addBookmark mutation finishes to add the bookmark in the bookmarks list.

Duration
3 min
Access
Included
Transcript
Retained from source evidence

We'll define a custom update function to run when the addBookmark mutation finishes to add the bookmark in the bookmarks list.

Resources:

  • GraphCache updates: https://formidable.com/open-source/urql/docs/graphcache/cache-updates/

Checkpoint: Update cache after mutation