title: ApolloClient - How to pass array instead of string?
body: <p>On the GraphQL Playground, this query works so backend is fine:</p>
  <pre><code>query ($CatIDs: [String]) {
    categories(where: { id: $CatIDs }) {
      id
    Name
    slug
      collections {
      id
      slug
      Name
      Description
      }
    }
  }
  </code></pre>
  <p>Where the variable $CatIDs is:</p>
  <pre><code>[&quot;7&quot;,&quot;9&quot;,&quot;13&quot;,&quot;14&quot;]
  </code></pre>
  <p>Now in ApolloClient, which I use with NextJS/React, I pass the array this way:</p>
  <pre><code>   const { data: SubCategory } = await client.query({
      query: getSubCategories,
      variables: {
        CatIDs
    },
    });
  </code></pre>
  <p>The problem is when I do that in ApolloClient, I think CatIDs get's wrapped in an additional quotation marks which makes it a String?</p>
  <p>Or what could be the problem?</p>
  <p>Error:</p>
  <blockquote>
  <p>ApolloError: select distinct &quot;categories&quot;.* from &quot;categories&quot; where
  ((&quot;categories&quot;.&quot;id&quot; = $1)) and (&quot;categories&quot;.&quot;published_at&quot; is not
  null) limit $2 - invalid input syntax for type integer:
  &quot;[&quot;7&quot;,&quot;9&quot;,&quot;13&quot;,&quot;14&quot;]&quot;</p>
  </blockquote>
  <p><strong>Edit:</strong></p>
  <p>I see now when I set the array manually, I get a valid response.</p>
  <pre><code> variables: {
        CatIDs: [&quot;1&quot;, &quot;2&quot;, &quot;3&quot;]
    },
  </code></pre>
  <p>So there must be something wrong with when I set CatIDs, even though when I log it, the value looks fine.</p>
  <p>This is how I set CatIDs:</p>
  <ol>
  <li>Initial Response-Object:</li>
  </ol>
  <pre><code>  { __typename: 'Category', id: '7' },
    { __typename: 'Category', id: '9' },
    { __typename: 'Category', id: '13' },
    { __typename: 'Category', id: '14' }
  </code></pre>
  <ol start="2">
  <li>Map over IDs:</li>
  </ol>
  <pre><code>var CatIDs = SubCatIDs.map (x =&gt; x.id);
  
  [ '7', '9', '13', '14' ]
  
  </code></pre>
  <ol start="3">
  <li>JSON.stringify to get double-quotations:</li>
  </ol>
  <pre><code>CatIDs = JSON.stringify(CatIDs);
  
  [&quot;7&quot;,&quot;9&quot;,&quot;13&quot;,&quot;14&quot;]
  
  </code></pre>
  <ol start="4">
  <li>Query with CatIDs -&gt; Error</li>
  </ol>