Apollo Query with Variable : <p>Just a basic apollo query request</p>

<pre><code>this.client.query({
  query: gql`
    {
      User(okta: $okta){
        id
      }
    }`
}).then(result =&gt; {
  this.setState({userid: result.data.User});
  console.log(this.state.userid.id)
}).catch(error =&gt; {
  this.setState({error: &lt;Alert color="danger"&gt;Error&lt;/Alert&gt;});
});
</code></pre>

<p>The question is, how/where to set the $okta variable.</p>

<p>Didn't find a solution on Stackoverflow or Google - would be great if someone could help me:)</p>
