Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalidate cache in dataloader after a document was updated or deleted #11577

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Mar 6, 2025

What?

Fixes an issue when:

  • Relationship document was populated
  • The same relationship document was updated / deleted
  • The same relationship document was populated again
  • Populated data for this relationship is staled

(Within the same transaction or if transactions are disabled)

How?

Introduces an internal id-collectionSlug, cacheKeyInDataLoader map that can be used to invalidate keys in payloadDataLoader in update / delete operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant