title: Update cached data for multiple queries that are related on single mutation in react-query?
body: <p>I have following queries with in my codebase :</p>
  <ol>
  <li>Query all the articles</li>
  </ol>
  <pre><code>useInfiniteQuery(
      ['articles', { pageSize: props.pageSize }],
      queryFn
    );
  </code></pre>
  <ol start="2">
  <li>Query articles of an single category</li>
  </ol>
  <pre><code>useInfiniteQuery(
      ['articles', { categoryId : props.categoryId , pageSize: props.pageSize }],
      queryFn
    );
  </code></pre>
  <ol start="3">
  <li>Query articles related to single a user</li>
  </ol>
  <pre><code>useInfiniteQuery(
      ['articles', { username : props.username , pageSize: props.pageSize }],
      queryFn
    );
  </code></pre>
  <p>and for every article there is 'Like' feature so i have created a mutation for it.</p>
  <pre><code>useMutation(
      articleApi.likePost(props),
      {
        onMutate: () =&gt; {
         // I want to implement cache update here
         // is there any way to update the liked article 
         // from all 3 queries at the same time if it present in all of 
         // them or some of them
        },     
      }
    );
  </code></pre>
  <p>My question is is there any way to update the liked article onMutate from all 3 queries at the same time if it present in all of them or some of them.</p>