aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/apollo.ts
blob: 99860842693dd91696dae818182928e8b4dc365a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { ApolloClient, InMemoryCache } from '@apollo/client';

import introspectionResult from './fragmentTypes';

const client = new ApolloClient({
  uri: '/graphql',
  cache: new InMemoryCache({
    possibleTypes: introspectionResult.possibleTypes,
  }),
});

export default client;