Skip to content

Commit

Permalink
Add link to fragment matcher recipe (apollographql#3284)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlv authored and abernix committed Apr 12, 2018
1 parent 7ffd1a9 commit c4dd52d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/apollo-cache-inmemory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ The `InMemoryCache` constructor takes an optional config object with properties

- addTypename: A boolean to determine whether to add __typename to the document (default: `true`)
- dataIdFromObject: A function that takes a data object and returns a unique identifier to be used when normalizing the data in the store. Learn more about how to customize `dataIdFromObject` in the [Normalization](#normalization) section.
- fragmentMatcher: By default, the `InMemoryCache` uses a heuristic fragment matcher. If you are using fragments on unions and interfaces, you will need to use an `IntrospectionFragmentMatcher`. For more information, please read [our guide to setting up fragment matching for unions & interfaces].
<!---
TODO (PEGGY): Add link to fragment matcher recipe
-->
- fragmentMatcher: By default, the `InMemoryCache` uses a heuristic fragment matcher. If you are using fragments on unions and interfaces, you will need to use an `IntrospectionFragmentMatcher`. For more information, please read [our guide to setting up fragment matching for unions & interfaces](https://www.apollographql.com/docs/react/advanced/fragments.html#fragment-matcher).

<h2 id="normalization">Normalization</h2>

Expand Down

0 comments on commit c4dd52d

Please sign in to comment.