Closed JoviDeCroock closed 3 months ago
Latest commit: 559f5c4a15cd10d4340efa47f33fd947c259fbd2
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Resolves #3470
Summary
This adds a default updater when the response contains an entity that has no links to yet, this implies the creation of a new entity. When this creation has no associated updater we'll invalidate the
type
, this ensures that lists are invalidated. This gets us to an easier adoption path and allows for optimising where the user wants to.The remaining issue here would be cases where the user returns a scalar or when an updater shifts the ordering of a list.
This brings the default graphcache a bit closer to document caching in terms of mutation reactions.