From 603d735dca479cebb788f4aff7e41917c1b87bd5 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 10 Feb 2019 20:12:57 +0100 Subject: [PATCH] removing __typename from apollo queries --- client/src/graphql/apollo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/graphql/apollo.js b/client/src/graphql/apollo.js index 2ce14faa5..a07faac41 100644 --- a/client/src/graphql/apollo.js +++ b/client/src/graphql/apollo.js @@ -66,7 +66,7 @@ const authLink = setContext((_, { headers }) => { } }) -const cache = new InMemoryCache().restore(window.__APOLLO_STATE__) +const cache = new InMemoryCache({ addTypename: false }).restore(window.__APOLLO_STATE__) const defaultOptions = { watchQuery: {