FetchPolicy is not documented
See original GitHub issueIntended outcome:
I viewed the API reference for apollo-client, and discovered the new fetchPolicy
option for queries. The option attempts to link to documentation for FetchPolicy
, and I would expect that link to work and describe the feature in more detail (including the ramifications of each possible setting).
Actual outcome:
The documentation for FetchPolicy
does not actually exist. I guess it should be here, but it’s not: http://dev.apollodata.com/core/apollo-client-api.html#FetchPolicy
How to reproduce the issue:
View the apollo-client API docs (such as for watchQuery
) and click FetchPolicy
. Note that the page doesn’t update because the section doesn’t exist in the docs.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Queries - Apollo GraphQL Docs
When loading is false and there is no error , the query has completed. ... This cache-first policy is Apollo Client's default fetch...
Read more >Does Vue Apollo saves queries in cache? - Stack Overflow
And if so, how do I pass options in my query: I read in the documentation that you can pass an option fetchPolicy:...
Read more >React Apollo: Understanding Fetch Policy with useQuery
I changed the fetch policy in the project to no-cache because I thought that would fit more to the project. ... Source: Apollo...
Read more >Queries - Vue Apollo
Let's take this example GraphQL document throughout this section: ... Beware that result may not contain your data at all time!
Read more >Default Apollo fetch policy in Nuxt | Damir's Corner
apollo.query({ fetchPolicy: "no-cache", ... for this blogpost, it turned out that the documented $query key works fine with smart queries:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve had similar issues finding this documentation. It does exist, but it’s tough to get to: http://dev.apollodata.com/react/api-queries.html#graphql-config-options-fetchPolicy
@mulho https://www.apollographql.com/docs/react/api/react/hoc/#optionsfetchpolicy