blob: 785f0e7f0630f949b0a20c2f43793efe38d6c7eb (
plain) (
tree)
|
|
import ApolloClient from 'apollo-boost';
import {
IntrospectionFragmentMatcher,
InMemoryCache,
} from 'apollo-cache-inmemory';
import introspectionQueryResultData from './fragmentTypes';
const client = new ApolloClient({
uri: '/graphql',
cache: new InMemoryCache({
fragmentMatcher: new IntrospectionFragmentMatcher({
introspectionQueryResultData,
}),
}),
});
export default client;
|