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.
const onlineDocumentServiceClient = new ApolloClient({
uri: process.env.REACT_APP_GQL_ODS
});
<Query query={QUERY} client={onlineDocumentServiceClient}>
I do not understand what if using useQuery can I do as Query does. I found it in https://www.apollographql.com/docs/react/data/queries/#executing-queries-manually the use of query can also be set by the client