menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Studio
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team

Any ways to delete the item in cache by it's id?

July 7, 2020 at 4:56pm

Any ways to delete the item in cache by it's id?

July 7, 2020 at 4:56pm
I have a standard usecase where i have a list of tasks and i need to delete one of them. To do it for one query i just use update method on mutation. But now i have 3 different queries that uses the fragment Task and they are used in different places. Is there a way to delete an item from cache just by that item id? If more details needed i'm ready to provide them.
No messages yet