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

InstructorKadi Kraman

Share this video with your friends

Send Tweet

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