From 1f8f293594d9c06dd2c01ea46f5a8ff4cc01abac Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 21 Jul 2017 04:17:47 +0700 Subject: [PATCH] Disable false-positive warnings --- client/coral-framework/services/graphqlRegistry.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/coral-framework/services/graphqlRegistry.js b/client/coral-framework/services/graphqlRegistry.js index 49d06c5c6..104ec41dd 100644 --- a/client/coral-framework/services/graphqlRegistry.js +++ b/client/coral-framework/services/graphqlRegistry.js @@ -4,6 +4,16 @@ import globalFragments from 'coral-framework/graphql/fragments'; import uniq from 'lodash/uniq'; import {gql} from 'react-apollo'; +/* + * Disable false-positive warning below, as it doesn't work well with how we currently + * assemble the queries. + * + * Warning: fragment with name {fragment name} already exists. + * graphql-tag enforces all fragment names across your application to be unique; read more about + * this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names + */ +gql.disableFragmentWarnings(); + const fragments = {}; const mutationOptions = {}; const queryOptions = {};