Stop Mixing cache.modify with refetchQueries
Apollo gives you two ways to keep the cache fresh after a mutation. Using both at the same time is an anti-pattern — and the cleanup is usually a net deletion.
Apollo gives you two ways to keep the cache fresh after a mutation. Using both at the same time is an anti-pattern — and the cleanup is usually a net deletion.
It's not about writing more code. It's about improving developer experience and helping the team move faster.