title: Mocking apollo graphql client
body: <p>I have written the following node client which interacts with the graphql server and using apollo-tools node module. I was not able to find any mock test for the below in node. Pls let me know is there a way to mock the below piece of code.</p>
  
  <pre><code>const batchIdFetchClient = new ApolloClient({
          uri: `http://localhost:3435`,
          fetch,
      })
  
      await batchfetchclient.query({
          query: gql`
    query batcidId($batchid: String!) {
      batchIds(batchid: $batchid){
          batchrenewedId 
      }
    }
  `,
          variables: {
              batchid: 'exdsfsdfsfdid1234', // As of now hardcoded
          },
      })
          .then(data =&gt; {
              logger.info('BatchId Database Successful Response =&gt;' + JSON.stringify(data))
          })
          .catch(error =&gt; {
              logger.error('BatchId Database Error Response =&gt;' + error)
          })
  </code></pre>