Apollo: Performance Management Playbook 2020 Flashcards
1
Q
05 Using Apollo Client for Redux-like State Management / 01 Understand How to Manage State with the Apollo Client
3 Apollo client Features for Managing State
A
- creating and updating virtual or local-only fields in GQL
- creating and updating global or reactive variables stored in the Apollo Client instance
- fetching local-only fields that include reactive variables resulting in full state management in your app
2
Q
07 Using the DataLoader to Improve Server Response Times / 01 Learn Why We Need a DataLoader
Is DataLoader caching data?
A
No, it is just for batching.
3
Q
07 Using the DataLoader to Improve Server Response Times / 03 Add a DataLoader for Retrieving a Room for Each Conference Session
What is a DataLoader pattern?
A
- Resolver stores id
- Resolver returns promise
- DataLoader request all ids