MongoWriteBatch::__construct Creates a new batch of write operations &reftitle.description; protected MongoWriteBatch::__construct MongoCollectioncollection stringbatch_type arraywrite_options Constructs a new MongoWriteBatch. This is a protected constructor. Please use one of the classes inheriting MongoWriteBatch. &reftitle.parameters; collection &mongo.mongowritebatch.collection.description; batch_type One of: 0 - make an MongoWriteBatch::COMMAND_INSERT batch 1 - make an MongoWriteBatch::COMMAND_UPDATE batch 2 - make a MongoWriteBatch::COMMAND_DELETE batch write_options &mongo.mongowritebatch.writeoptions.description; &reftitle.returnvalues; A new MongoWriteBatch of type batch_type. &reftitle.seealso; MongoInsertBatch MongoUpdateBatch MongoDeleteBatch