apollographql / apollo-link

:link: Interface for fetching and modifying control flow of GraphQL requests
https://www.apollographql.com/docs/link/
MIT License
1.44k stars 347 forks source link

Fix query deduplication documentation #1300

Open Kujawadl opened 4 years ago

Kujawadl commented 4 years ago

The forceFetch option is overridden by apollo-client based on the queryDeduplication option provided in either the client initialization or the query context, and can therefore be considered an internal value.

Since forceFetch is internal, and queryDeduplication is the option to enable/disable the dedup logic, the docs should reference queryDeduplication instead.

I've also clarified a little bit about how it can be disabled globally.

These changes are in conjunction with apollographql/apollo-client#6261 (and apollographql/apollo-client#6526 for a possible v2.6 release).