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

using seneca mongodb to update multiple documents #59

Open
jitchavan opened this issue Oct 15, 2016 · 1 comment
Open

using seneca mongodb to update multiple documents #59

jitchavan opened this issue Oct 15, 2016 · 1 comment

Comments

@jitchavan
Copy link

jitchavan commented Oct 15, 2016

Is there any way to update multiple documents from senecajs mongodb module.

    entity.save$(function (err, entity) { ... })
    entity.load$({id: ...}, function (err, entity) { ... })
    entity.list$({property: ...}, function (err, entity) { ... })
    entity.remove$({id: ...}, function (err, entity) { ... })
@n67094
Copy link

n67094 commented Jun 16, 2017

Yep,
you can use the native$ method which one allow you to use the mongo node driver here and use bulk operations through it

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

No branches or pull requests

2 participants