diff --git a/packages/apollo-cache-inmemory/src/fragmentMatcher.ts b/packages/apollo-cache-inmemory/src/fragmentMatcher.ts index 4ae8943cb2a..87c416be87e 100644 --- a/packages/apollo-cache-inmemory/src/fragmentMatcher.ts +++ b/packages/apollo-cache-inmemory/src/fragmentMatcher.ts @@ -77,10 +77,11 @@ export class HeuristicFragmentMatcher implements FragmentMatcherInterface { // If it's 1, we don't want to return anything, if it's 2 we want to match. We can't tell the // difference, so we warn the user, but still try to match it (backcompat). warnOnceInDevelopment( - `You are using the simple (heuristic) fragment matcher, but your queries contain union or interface types. - Apollo Client will not be able to accurately map fragments. ` + - `To make this error go away, use the IntrospectionFragmentMatcher as described in the docs: ` + - `https://www.apollographql.com/docs/react/recipes/fragment-matching.html`, + 'You are using the simple (heuristic) fragment matcher, but your ' + + 'queries contain union or interface types. Apollo Client will not be ' + + 'able to accurately map fragments. To make this error go away, use ' + + 'the `IntrospectionFragmentMatcher` as described in the docs: ' + + 'https://www.apollographql.com/docs/react/recipes/fragment-matching.html', 'error', );