Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Support mutate-and-return operations #416

Open
Torgen opened this issue Dec 18, 2020 · 0 comments
Open

Support mutate-and-return operations #416

Torgen opened this issue Dec 18, 2020 · 0 comments

Comments

@Torgen
Copy link

Torgen commented Dec 18, 2020

The current MongoDB driver supports the operations findOneAndDelete, findOneAndReplace, and findOneAndUpdate which support modifying a document and returning the old version of the document as a single operation. Especially since Meteor doesn't allow creating a transaction yet, supporting these atomic operations would allow developers to avoid patterns like double checked read and update loops to avoid race conditions.

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

No branches or pull requests

2 participants