Skip to content

Commit

Permalink
Slight warning message formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hwillson committed Aug 7, 2018
1 parent bf00790 commit a736071
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/apollo-cache-inmemory/src/fragmentMatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);

Expand Down

0 comments on commit a736071

Please sign in to comment.