aboutsummaryrefslogblamecommitdiffstats
path: root/webui/src/apollo.ts
blob: 99860842693dd91696dae818182928e8b4dc365a (plain) (tree)
1
2
3
4
5
6
7
8
                                                             
 
                                                  



                                 
                                                     



                      
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;