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

Clear Dataloader cache around mutation root fields #4617

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Sep 5, 2023

Fixes #4600

@rmosolgo rmosolgo added this to the 2.1.1 milestone Sep 5, 2023
@swalkinshaw
Copy link
Collaborator

Is this something that could be built into lazy execution so that graphql-batch wouldn't need it's own implementation?

@rmosolgo
Copy link
Owner Author

rmosolgo commented Sep 5, 2023

Yeah, I think there might be something to gain here. I'm not sure how GraphQL-Ruby would (or should?) know the internals of GraphQL-Batch, but some kind of clear_cache hook for GraphQL-Batch to listen to would make sense 👀

@rmosolgo
Copy link
Owner Author

rmosolgo commented Sep 7, 2023

I'm going to merge this as-is, but I've opened #4624 to investigate further.

@rmosolgo rmosolgo merged commit d75ecaf into master Sep 7, 2023
12 checks passed
@Bertg
Copy link

Bertg commented Sep 27, 2023

@rmosolgo This fix has been on main almost 3 weeks. Any ETA on an official release?

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

Successfully merging this pull request may close these issues.

fiber-based dataloaders prevent reloading mutated objects
3 participants