An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          



# Wizards Apollo
> Application used for my talk about caching management with Apollo Client 3

[![Author](https://img.shields.io/badge/author-LauraBeatris-191F2B?style=flat-square)](https://github.com/LauraBeatris)
[![Languages](https://img.shields.io/github/languages/count/LauraBeatris/wizards-apollo?color=%23191F2B&style=flat-square)](#)
[![Stars](https://img.shields.io/github/stars/LauraBeatris/wizards-apollo?color=191F2B&style=flat-square)](https://github.com/LauraBeatris/wizards-apollo/stargazers)
[![Forks](https://img.shields.io/github/forks/LauraBeatris/wizards-apollo?color=%23191F2B&style=flat-square)](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)