I have one component that queries for a list of Journeys for the current user with a MyJourneys query. It uses a paginated connection. Sorting is done on the server and is fairly complex.
I also have a subscription to my Journeys that will fire whenever any are added or updated in any way. These changes may affect the sorting, update data about a single journey, or add a journey to the list. The subscription is called with the Journey that was updated.
Because the sorting is complex, I’d rather not have the subscription’s
update function update the list of Journeys every time a change is made. My ideal solution for updating the list would be to invalidate all of the MyJourneys queries so that the next time the list is displayed it will remake them. This seems better than proactively refetching all of the relevant queries, but that doesn’t seem to be an option. If I could just reset the cache to make it as if all queries of a given type have never been made that would be great. Am I missing something about how this should work? Thanks!