Stellate Product Updates logo
Back to Homepage Subscribe to Updates

Product Updates

See the latest new features, improvements, and product updates

Labels

  • All Posts
  • Fix
  • Announcement
  • Improvement
  • graph api
  • feature

Jump to Month

  • December 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • January 2023
  • September 2022
  • August 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
Announcement
4 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!
Avatar of authorMarko Locher