What I need is to force all the queries that I have on pages to refetch data after clicking one button.
I have found the soultion for one specific query here (https://www.apollographql.com/docs/react/caching/advanced-topics/), but it's not clear have can I do this for all the queries at one time.
Right on that page you have already linked, there's https://www.apollographql.com/docs/react/caching/advanced-topics/#resetting-the-cache