Comments (2)
Doubt 2: Does the above holds true only after we have added dataIdFromObject: o => o.id in ApoloClient instantiation ?
Yes 🙂
Before, we would query not only the newly created pokemon id, but actually the trainer and all the pokemon he owns. By adding the forceFetch
option (this is by the way renamed to forcePolicy
in the latest Apollo version), we are querying the whole trainer whenever we visit the route again.
Hope that helps! I tried to explain it in more detail in this excursion: https://www.learnapollo.com/excursions/excursion-02/
from learnapollo.
Thanks, @marktani, this is helpful! Understood everything now :)
from learnapollo.
Related Issues (20)
- react-scripts is not recognized after `npm install` HOT 7
- Remove side effect in render HOT 3
- Atom editor complains about missing eslint-plugin-flowtype HOT 3
- Tutorial for Advanced techniques
- Exponent became expo HOT 1
- Inline links to GraphQL Docs
- Consistent Misspelling: It's 'Pokemon', not 'Pokemons'
- Download doesn't work
- Redirect after signup doesn't work
- exercize-03, dependencies HOT 3
- Exercize-04 react-native, can't find variable error HOT 2
- Add link to actual source code
- Can't access interactive tutorial HOT 8
- TrainerQuery always returns a null HOT 2
- API contents not created HOT 5
- Issue Loading Trainer Data, Exercise 2 HOT 2
- Chat button styling is wrong
- Fix CORS HOT 4
- Update Apollo Examples to use 2.1 best practices HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learnapollo.