How to chain two GraphQL queries in sequence using Apollo Client : <p>I am using Apollo Client for the frontend and Graphcool for the backend. There are two queries <code>firstQuery</code> and <code>secondQuery</code> that I want them to be called in sequence when the page opens. Here is the sample code (the definition of TestPage component is not listed here):</p>

<pre><code>export default compose(
        graphql(firstQuery, {
            name: 'firstQuery'
        }),
        graphql(secondQuery, { 
            name: 'secondQuery' ,
            options: (ownProps) =&gt; ({
                variables: {
                   var1: *getValueFromFirstQuery*
                }
            })
        })
)(withRouter(TestPage))
</code></pre>

<p>I need to get <code>var1</code> in <code>secondQuery</code> from the result of <code>firstQuery</code>. How can I do that with Apollo Client and compose? Or is there any other way to do it? Thanks in advance. </p>
