title: How to send list of ids as param with graphql
body: <p>I'm using React, Graphql and Apollo. </p>
  
  <p>I have function as follows:</p>
  
  <pre><code>updateSlots(updateSlots, data){
          const {slotIds, refetch} = this.props;
          const {disabled, printEntry, toggleSlotForm} = data;
  
          updateSlots({variables: {disabled: disabled, printEntry: printEntry, ids: slotIds}})
              .then(res =&gt; {
                  if (res.data.updateSlots.ok) {
  
                      refetch();
                      this.setState({hasError: false, errorMessage: "", saved: true, slot: initialSlot()}, () =&gt; {
                          setTimeout(() =&gt; toggleSlotForm(), 3000)
                      });
                  }
              })
              .catch(err =&gt; {
                  debugger;
                  let error_msg = err.message.replace("GraphQL error: ", '');
                  this.setState({hasError: true, saved: false, errorMessage: error_msg});
                  throw(error_msg);
              })
  
      }
  </code></pre>
  
  <p>And <code>mutation</code> is as follows:</p>
  
  <pre><code>const UPDATE_SLOTS = gql`
    mutation updateSlots($disabled: Boolean!, $printEntry: Boolean!, $ids: String!) {
      updateSlots(disabled: $disabled, printEntry: $printEntry, ids: $ids) {
          ok
      }
    }
  `;
  </code></pre>
  
  <p>And at the backend I use <strong>graphene</strong> and the mutation is as follows:</p>
  
  <pre><code>class UpdateSlots(graphene.Mutation):
      class Arguments:
          disabled = graphene.Boolean(required=True)
          printEntry = graphene.Boolean(required=True)
          ids = graphene.String(required=True)
  
      ok = graphene.Boolean()
  
      @staticmethod
      def mutate(root, info, disabled, printEntry, ids):
          pdb.set_trace()
          ok = False
  
          try:
              ok = True
              for id in ids:
                  print(id)
          except Exception as e:
              ok = False
              raise GraphQLError(str(e))
  </code></pre>
  
  <p>But I get string in <code>ids variable</code> as follows:</p>
  
  <pre><code>"['3692', '3695', '3704']"
  </code></pre>
  
  <p>instead of :</p>
  
  <pre><code>['3692', '3695', '3704']
  </code></pre>
  
  <p>How can I send an array of ids and how can I get it on the backend?</p>
  
  <p>Any idea?</p>