X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/a7cf03c192470cbab13edeb1aec99e0c66dede10..d2cd7f1b4c318ac8587ab3dc1dec4a44b6d592fe:/src/lib/config/apollo.ts?ds=inline diff --git a/src/lib/config/apollo.ts b/src/lib/config/apollo.ts index a3820ed..a8b27ef 100644 --- a/src/lib/config/apollo.ts +++ b/src/lib/config/apollo.ts @@ -5,10 +5,13 @@ import { apollo as apolloConfig } from './config'; 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 });