question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FetchPolicy is not documented

See original GitHub issue

Intended 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:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

39reactions
stevewillardcommented, Apr 26, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found