Skip to content

Commit

Permalink
docs: Remove redundant sentence (#4399)
Browse files Browse the repository at this point in the history
  • Loading branch information
davecardwell authored and danilobuerger committed Feb 2, 2019
1 parent 2a05514 commit 08da313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
[@justyn-clark](https://github.com/justyn-clark) in [#4383](https://github.com/apollographql/apollo-client/pull/4383) <br />
[@jtassin](https://github.com/jtassin) in [#4287](https://github.com/apollographql/apollo-client/pull/4287) <br />
[@Gongreg](https://github.com/Gongreg) in [#4386](https://github.com/apollographql/apollo-client/pull/4386) <br />
[@davecardwell](https://github.com/davecardwell) in [#4399](https://github.com/apollographql/apollo-client/pull/4399) <br />

## Apollo Client (2.4.12)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/advanced/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ Fundamentally, paginated queries are the same as any other query with the except

To solve this Apollo Client 1.6 introduced the `@connection` directive to specify a custom store key for results. A connection allows us to set the cache key for a field and to filter which arguments actually alter the query.

To have a stable cache location for query results, Apollo Client 1.6 introduced the `@connection` directive, which can be used to specify a custom store key for results. To use the `@connection` directive, simply add the directive to the segment of the query you want a custom store key for and provide the `key` parameter to specify the store key. In addition to the `key` parameter, you can also include the optional `filter` parameter, which takes an array of query argument names to include in the generated custom store key.
To use the `@connection` directive, simply add the directive to the segment of the query you want a custom store key for and provide the `key` parameter to specify the store key. In addition to the `key` parameter, you can also include the optional `filter` parameter, which takes an array of query argument names to include in the generated custom store key.

```
const query = gql`query Feed($type: FeedType!, $offset: Int, $limit: Int) {
Expand Down

0 comments on commit 08da313

Please sign in to comment.