senecajs / seneca-mongo-store

Node.js Seneca data storage plugin for MongoDB
MIT License
35 stars 42 forks source link

using seneca mongodb to update multiple documents #59

Open jitchavan opened 8 years ago

jitchavan commented 8 years ago

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 commented 7 years ago

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