mobilizon/js/src/vue-apollo.ts

12 lines
387 B
TypeScript
Raw Normal View History

import { ApolloClient, NormalizedCacheObject } from "@apollo/client/core";
import buildCurrentUserResolver from "@/apollo/user";
import { cache } from "./apollo/memory";
import { fullLink } from "./apollo/link";
export const apolloClient = new ApolloClient<NormalizedCacheObject>({
cache,
link: fullLink,
connectToDevTools: true,
2019-09-02 14:35:50 +02:00
resolvers: buildCurrentUserResolver(cache),
2019-01-18 14:47:10 +01:00
});