import { ApolloClient , InMemoryCache , HttpLink } from '@apollo/client' ; import fetch from 'node-fetch' ; import { HOST } from './constants' ; const httpLink = new HttpLink ( { uri : `${ HOST }/api/graphql` , fetch , } ) ; const client = new ApolloClient ( { link : httpLink , cache : new InMemoryCache ( ) , } ) ; export default client ;