1const defaultOptions: {
2 watchQuery: {
3 fetchPolicy: 'no-cache',
4 errorPolicy: 'ignore',
5 },
6 query: {
7 fetchPolicy: 'no-cache',
8 errorPolicy: 'all',
9 },
10 }
11
12const client = new ApolloClient({
13 link: concat(authMiddleware, httpLink),
14 cache: new InMemoryCache(),
15 defaultOptions: defaultOptions,
16
17});
18