Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Fix query deduplication documentation #1300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/apollo-link-dedup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const link = new DedupLink();
The Dedup Link does not take any options when creating the link.

## Context
The Dedup Link can be overridden by using the context on a per operation basis:
- `forceFetch`: a true or false (defaults to false) to bypass deduplication per request
Deduplication is enabled by default when using apollo-client. It can be disabled globally in the client constructor options, and can be overridden by using the context on a per operation basis:
- `queryDeduplication`: a boolean to bypass the client-wide deduplication setting per request. If not provided, the client setting is used (defaults to true).

```js
import { createHttpLink } from "apollo-link-http";
Expand All @@ -37,7 +37,7 @@ const client = new ApolloClient({
client.query({
query: MY_QUERY,
context: {
forceFetch: true
queryDeduplication: false
}
})
```