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

FindOneAndUpdate #54

Open
lafeuil opened this issue Feb 23, 2018 · 1 comment
Open

FindOneAndUpdate #54

lafeuil opened this issue Feb 23, 2018 · 1 comment

Comments

@lafeuil
Copy link

lafeuil commented Feb 23, 2018

Do you think it is possible to add a findOneAndUpdate function like in the MongoDB collection ?

With the findOneAndUpdate function, we could use the returnNewDocument param and get the values from the updated object. Then, the values of the new object could be used in the next queries with $ojFuture key !

This would be very useful when update an object with $inc operator for example.

@e-oj
Copy link
Owner

e-oj commented Feb 23, 2018

That could be a useful feature to have but I can't say it'll be added anytime soon. I really don't have a lot of free time right now but it could be part of a future release. PRs are always welcome as well, If you'd like to work on this.

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

No branches or pull requests

2 participants