Vulcan/packages/vulcan-lib/lib/client/apollo-client/apollo2.js
Eric Burel 2bacae7a0e copy-pasted meteor/apollo, updated to RR4
meteor/apollo Atmosphere version does not seem up to date with the Github repo
2018-09-26 11:34:28 +02:00

20 lines
520 B
JavaScript

import { ApolloClient } from 'apollo-client';
import { ApolloLink } from 'apollo-link';
import watchedMutationLink from './links/watchedMutation'
import errorLink from './links/error'
import httpLink from './links/http'
import meteorAccountsLink from './links/meteor'
import stateLink from './links/state'
import cache from './cache'
export const apolloClient = new ApolloClient({
link: ApolloLink.from([
stateLink,
watchedMutationLink,
errorLink,
meteorAccountsLink,
httpLink
]),
cache,
});