title: How to set client in useQuery Apollo in ReactJs
body: <p>I want to change the url from what is set in the context. Here I want to use useQuery, when using Query I successfully set a new url client, as follows.</p>
  
  <pre><code>const onlineDocumentServiceClient = new ApolloClient({
    uri: process.env.REACT_APP_GQL_ODS
  });
  
  &lt;Query query={QUERY} client={onlineDocumentServiceClient}&gt;
  </code></pre>
  
  <p>I do not understand what if using useQuery can I do as Query does. I found it in <a href="https://www.apollographql.com/docs/react/data/queries/#executing-queries-manually" rel="nofollow noreferrer">https://www.apollographql.com/docs/react/data/queries/#executing-queries-manually</a> the use of query can also be set by the client</p>