DEV Community

Discussion on: Automatically Update Apollo Cache after Mutations

Collapse
khaoptimist97 profile image
khaoptimist97

In my case I want to update just one item instead of the whole. Is there some tips to do that while I dont need to query all the tasks and find by ID the item I want to update.

Collapse
wtrocki profile image
Wojtek Trocki • Edited on

Hi. Apollo client will do that for you. All updates will happen in the normalized cache and they are already linked to the query object.
The only add and delete operation needs to be handled.

TL;DR - no update needed for edits