bulkWrite in reactivemongo

27 views
Skip to first unread message

MHJ

unread,
Apr 21, 2021, 2:31:05 PM4/21/21
to ReactiveMongo - http://reactivemongo.org

What is the way of creating

db.collection.bulkWrite(

       [

           { insertOne : <document> },

           { updateOne : <document> },

          { updateMany : <document> },

          { replaceOne : <document> },

          { deleteOne : <document> },

          { deleteMany : <document> }

      ],

     { ordered : false }

)

in reactivemongo ?

Cédric Chantepie

unread,
Apr 21, 2021, 4:20:08 PM4/21/21
to ReactiveMongo - http://reactivemongo.org
ReactiveMongo is a driver, is supported MongoDB commands.
Bulkwrite is not a command, but a method specific to a MongoDB client named MongoShell.

Just execute insert and update commands.
Reply all
Reply to author
Forward
0 new messages