apollo.ts

 1import { ApolloClient, InMemoryCache } from '@apollo/client';
 2
 3import introspectionResult from './fragmentTypes';
 4
 5const client = new ApolloClient({
 6  uri: '/graphql',
 7  cache: new InMemoryCache({
 8    possibleTypes: introspectionResult.possibleTypes,
 9  }),
10});
11
12export default client;