================================ MongoDB\\Collection::bulkWrite() ================================ .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\Collection::bulkWrite($operations, $options) Executes multiple write operations. .. code-block:: php function bulkWrite(array $operations, array $options = []): MongoDB\BulkWriteResult :phpmethod:`MongoDB\\Collection::bulkWrite` has the following parameters: .. include:: /includes/apiargs/MongoDBCollection-method-bulkWrite-param.rst :phpmethod:`MongoDB\\Collection::bulkWrite` supports the following options: .. include:: /includes/apiargs/MongoDBCollection-method-bulkWrite-option.rst .. todo: add output and examples .. seealso:: - :phpmethod:`deleteMany ` - :phpmethod:`deleteOne ` - :phpmethod:`insertOne ` - :phpmethod:`replaceOne ` - :phpmethod:`updateMany ` - :phpmethod:`updateOne ` - :doc:`/tutorial/crud`