https://github.com/laurabeatris/wizards-apollo
An application for my talk about caching management with Apollo Client 3
https://github.com/laurabeatris/wizards-apollo
apollo-client-3 caching graphql graphql-caching react
Last synced: 12 months ago
JSON representation
An application for my talk about caching management with Apollo Client 3
- Host: GitHub
- URL: https://github.com/laurabeatris/wizards-apollo
- Owner: LauraBeatris
- Created: 2021-10-29T19:49:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-05T15:59:00.000Z (over 4 years ago)
- Last Synced: 2025-02-28T17:46:39.497Z (over 1 year ago)
- Topics: apollo-client-3, caching, graphql, graphql-caching, react
- Language: JavaScript
- Homepage:
- Size: 18.5 MB
- Stars: 55
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wizards Apollo
> Application used for my talk about caching management with Apollo Client 3
[](https://github.com/LauraBeatris)
[](#)
[](https://github.com/LauraBeatris/wizards-apollo/stargazers)
[](https://github.com/LauraBeatris/wizards-apollo/network/members)
## Resources
- [Apollo Day Talk](https://www.youtube.com/watch?v=PcAl3lRF4fQ&t=8s)
- [GraphQL Summit Talk]() - Coming soon
## Topics covered
- Differences between fetch policies options: Inspect by selecting a fetch policy on the header menu
- [Customize key fields for caching identifiers](https://github.com/LauraBeatris/wizards-apollo/blob/05c2c84c86785e7ca87fcd517cb2e0d537303e06/src/config/apolloClient.js#L8)
- [Update local data - Directly update cache after mutations](https://github.com/LauraBeatris/wizards-apollo/tree/update-local-data-without-refetch-queries): Check mutation hooks to inspect code
- [Update local data - Refetch queries after mutation](https://github.com/LauraBeatris/wizards-apollo/tree/update-local-data-with-refetch-queries): Check mutation hooks to inspect code
- [Use field policies to create custom client-side fields](https://github.com/LauraBeatris/wizards-apollo/blob/6395f7059b56e17ef8148cd4430b52223cb9658a/src/config/apolloClient.js#L8)
- [Offset-based pagination](https://github.com/LauraBeatris/wizards-apollo/tree/apply-pagination-wizards-and-comments): Inspect the field policy configurations on [apolloClient.js](https://github.com/LauraBeatris/wizards-apollo/blob/d095de555990c871dec89c3d137d7187e55e4fb6/src/config/apolloClient.js#L8) and pagination logic on [Home.js](https://github.com/LauraBeatris/wizards-apollo/blob/d095de555990c871dec89c3d137d7187e55e4fb6/src/pages/Home/index.js#L38)