-
Notifications
You must be signed in to change notification settings - Fork 1
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
manipulate data and then do something #7
Comments
use |
but then I still will have to chaing the update . |
I don't get it. |
Update and new is chainable functions that you chain to collection (actually Query Object) .
but what if I want to process some logic based on the data I get from the colllection and then update the object with the new data let say change a flag
now If I want to update the object I have to call the collection.findOne() again in order to chain the update function .
I have to say that I use mongo-next as main module in my project and It is very helpful for me and saved me a lot of time and effort |
I think if the collection will be added to the query result as parameter it will be possible to chain actions on the promise callback |
How I can do make update on data without chaining the command to find();
how I can do that (updating the user object without calling collection("friends").find(user) again
The text was updated successfully, but these errors were encountered: