title: query not called when props are changed in Apollo client with react js
body: <p>I need a query to be called when props are updated in redux store. But it is not happening like that, query is called only once when component is loaded. </p>
  
  <p>My code is like this - -</p>
  
  <pre><code>  const sampleData = compose(graphql(ITEMS_BY_CATEGORY, {name:"itemByCategory", options: (props) =&gt; ({variables: {_id:props.user._id,searchstring:"", start:0,limit:10, itemype:"created",categoryid:props.categoryid}})}))(samplePage)
  
  export default connect(
    (state) =&gt; ({user: state.user.user,categoryid: state.item.categoryid}),
    {}
  )(sampleData);
  </code></pre>
  
  <p>I tried refetch method after props are updated. Like  - this.props.data.refetch(). But it also didn't work.</p>