blob: c111dbd8e0bef9b0079a9ed365cbce35b8373845 (
plain) (
tree)
|
|
import { ApolloClient, InMemoryCache } from '@apollo/client';
import introspectionResult from './fragmentTypes';
const client = new ApolloClient({
uri: '/graphql',
cache: new InMemoryCache({
possibleTypes: introspectionResult.possibleTypes,
typePolicies: {
// TODO: For now, we only query the default repository, so consider it as a singleton
Repository: {
keyFields: [],
},
},
}),
});
export default client;
|