Course lesson

Use a GraphQL Fragment to Update Specific Item in urql GraphCache to Remove Items

We'll use a graphQL fragment to update the bookmark id in the cache when the bookmark is removed.

Duration
4 min
Access
Included
Transcript
Retained from source evidence

We'll use a graphQL fragment to update the bookmark id in the cache when the bookmark is removed.

Resources:

  • Cache updates documentation: https://formidable.com/open-source/urql/docs/graphcache/cache-updates/
  • GraphQL Fragments: https://graphql.org/learn/queries/#fragments

Checkpoint: Support removing bookmarks