Using apollo client 3. Queried all countries and want to remove one country from cache and re-render UI.
Tried like below;
onClick={() => {
cache.evict({ id: `Country:${country.code}` });
cache.gc();
}}
But didn't work. How to evict a country?
TypeError: cache.identify is not a function
in the console? – Mountbatten