title: How do I use apollo cache to match an input variable that is a sub array/sub list of ids?
body: <p>How do I use apollo cache to match an input variable that is a sub array/sub list of ids in the cache?</p>
  <p>In particular, when I execute an apollo query, I want to return a response for a subset of list of params.</p>
  <p>Phrased another way, how can I add additional entries into the cache so that my cache can match future &quot;subqueries&quot; e.g.</p>
  <pre><code>fetch({
      variables: {
          ids: ['1']
      }
  })
  </code></pre>
  <p>when I had previously queried</p>
  <pre><code>fetch({
      variables: {
          ids: ['1', '2', '3']
      }
  })
  </code></pre>
  <p>Full example below:</p>
  <pre><code>// This code is not working, but just used to illustrate an example.
  const [fetch, data] = useQuery( /* graphql params here */ );
  
  // Apollo cache will cache the response for `ids: ['1', '2', '3']`
  fetch({
      variables: {
          ids: ['1', '2', '3']
      }
  })
  
  // In these subsequent call, I don't want to hit the server and want to hit the cache.
  // Can I leverage apollo cache for this?
  fetch({
      variables: {
          ids: ['1']
      }
  })
  fetch({
      variables: {
          ids: ['2','3']
      }
  })
  fetch({
      variables: {
          ids: ['1','2']
      }
  })
  </code></pre>