Workshop on how to create a GraphQL edge cache.
npm ci
npm start
npm run test
See if you can create your own extract typenames function and get the tests to pass
Now that you know what typenames each query depends on, see if you can delete all queries from the cache when their typename is returned from a mutation.
Try "normalizing" the query before caching it by:
- Sorting query keys
- Removing query names
- Pulling out fragment definitions
There are tests for each of these that you can enable!
Any questions, just ping me via the discord or create an issue on the repo 👍