title: Using Apollo client without hooks
body: <p>I want to use Apollo Client for GraphQL queries/mutations/...</p>
  <p>But I don't want to use hooks (e.g <code>useQuery(...)</code>).</p>
  <p>I want to fetch the data regardless of the component lifecycle.</p>
  <p>I want to store the data in my <code>Mobx</code> store.</p>
  <p>So far, I found the coupling with <code>useQuery</code> and fetching the data and I want to bypass that.</p>
  <p>Something like that:</p>
  <pre><code>async function fetchTodos() {
    store.setLoading(true);
  
    const todos = await service.runTodosQuery();
    store.setTodos(todos);
  
    store.setLoading(false);
  }
  </code></pre>
  <p>I found <a href="https://www.apollographql.com/blog/graphql/examples/4-simple-ways-to-call-a-graphql-api/" rel="nofollow noreferrer">this</a> so far but I don't see how I can use apollo client without hooks.</p>