]>
Commit | Line | Data |
---|---|---|
58f7d521 RBR |
1 | import fetch from 'cross-fetch'; |
2 | import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client/core'; | |
c1bc5993 RBR |
3 | import { apollo as apolloConfig } from './config'; |
4 | ||
5 | const cache = new InMemoryCache(); | |
6 | ||
7 | export const client = new ApolloClient({ | |
cac85db0 RBR |
8 | cache, |
9 | link: new HttpLink({ | |
10 | uri: apolloConfig.uri, | |
11 | fetch | |
12 | }), | |
13 | ...apolloConfig | |
c1bc5993 | 14 | }); |