Fix: Cache data may be lost when replacing the getAllPosts field of a Query object in Apollo client.
Supposing we have a getAllPosts query that returns all posts. When we perform a delete operation using the recently released Apollo v3 and uses refetchQueries to update our UI, we are greeted with this warning:
Cache data may be lost when replacing ...
Schalk
Senior Frontend Developer
Thanks, was looking for this solution for 2 days now. Works like a charm.