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

Collection implementations of update_one rely on API's updateOne command #304

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

hemidactylus
Copy link
Collaborator

For historical reasons, internally the method(s, sync+async) were calling the core's findOneAndUpdate, which incurs a penalty of having to return (and then discard) the doc itself.

This PR fixes that. To do so, a small enhancement to core was necessary.

@hemidactylus hemidactylus merged commit d8bb3a5 into master Aug 26, 2024
3 checks passed
@hemidactylus hemidactylus deleted the SL-switch-to-updateone-fully branch August 26, 2024 18:38
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.

1 participant