title: GraphQL query with multiple ids using Apollo
body: <p>I have a query that takes an array of ids as parameter. In the array, I can add or remove ids based on the selected documents.
  <br/>
  <strong>The problem is that it does not launch the query every time the array of id changes</strong> but I don't understand why.
  <br/>
  I've also tried changing the query <code>options.fetchPolicy</code> with <code>network-only</code> and <code>no-cache</code> but it doesn't work.
  <br/><br/>
  This is my query:</p>
  
  <pre><code>const GET_DATA = gql`
      query docs($selectedDocs: [ID]) { 
          docs(selectedDocs: $selectedDocs) {
              _id
              name
              description
          }
      }
  `;
  </code></pre>
  
  <p>And this is the render function of the component:</p>
  
  <pre><code>render() {
          const { selectedDocs } = this.props;
          console.log(selectedDocs)
          return (
              &lt;Query
                  query={GET_DATA}
                  variables={{ selectedDocs }}
                  fetchPolicy="network-only"
                  // fetchPolicy="no-cache"
                  notifyOnNetworkStatusChange
              &gt;
                  {({ loading, error, data, refetch, networkStatus }) =&gt; {
                      if (loading) return "Loading...";
                      if (error) return "Error!";
  
                      console.log(data);
                      return (
                          &lt;div&gt;
                              docs list
                          &lt;/div&gt;
                      )
                  }}
              &lt;/Query&gt;
          );
      }
  </code></pre>
  
  <p>This is the parent component render method:</p>
  
  <pre><code>render() {
      const { selectedDocs } = this.state;
      return (
          &lt;Docs
              selectedDocs={selectedDocs}
          /&gt;
      )
  }
  </code></pre>