Suppose I want to do the following (in mongo shell):
var bulk = db.vectors.initializeOrderedBulkOp() bulk.find({\"_id\" : ObjectId(\"53f265da13d3f885ed8bf75d\")
I am using reactive-mongo 0.11.9:
import collection.BatchCommands._ import UpdateCommand._ import reactivemongo.bson._ collection.runCommand(Update( UpdateElement(q = document(...), u = document(...)), UpdateElement(q = document(...), u = document(...))... ))