I am making really good headway implementing the generated mutations within my app (React). I am using the Apollo Client Hooks (currently 3.1.4). I thought I was going to have to do some long tedious cache update functions, but for the most part (after reenabling caching) the cache gets auto updated as long as I retrieve the data back from the mutation that is needed for the cache update.
For one use case I have users able to give different reactions to a comment. And now with the update mutation I can allow a user to change their reaction and the cache auto updates.
However, I have run into now where I will have to manually update the cache—on deletes. If a user desides to remove their reaction the cache is not updated. I can make a request to read the data, but that is pre-delete so it doesn’t update anything. I am trying to figure out the best way to handle cache updates on deletes.
Does anybody else have any pointers to get me headed in the right direction here.