I am using apollo graphql in my react application. Say I have the following query:
query ListQuery($filter: String!) { items(filter: $filter) { id n
In your case, you can use the apollo's method client.resetStore();
It will clear the previous cache and then load the active queries.