const cache = new InMemoryCache();
export const client = new ApolloClient({
- cache,
- link: new HttpLink({
- uri: apolloConfig.uri,
- fetch
- }),
- ...apolloConfig
+ cache,
+ link: new HttpLink({
+ uri: apolloConfig.uri,
+ headers: {
+ apiKey: apolloConfig.key
+ },
+ fetch
+ }),
+ ...apolloConfig
});