3 years ago
Automatic mutation invalidation
We've been dreaming of this feature ever since we first started building GraphCDN so we're very excited it's finally here!
How it works
Let's say you have a query cached that looks like this:
{ "user": { "id": 5, "name": "Peter Pan" } }
and run a mutation that edits that user's data, something like:
mutation { editUser(id: 5, name: "Saint Peter") { id name } }
As soon as the mutation completes, GraphCDN will fully automatically invalidate all cached queries globally that contain that user's data. You don't have to implement manual caching for any data changes that happen via GraphQL mutations anymore!