arg_name: param name: $operations type: array description: | An array containing the write operations to perform. {{role}} supports :phpmethod:`deleteMany `, :phpmethod:`deleteOne `, :phpmethod:`insertOne `, :phpmethod:`replaceOne `, :phpmethod:`updateMany `, and :phpmethod:`updateOne ` operations in the following array structure: .. code-block:: php [ [ 'deleteMany' => [ $filter ] ], [ 'deleteOne' => [ $filter ] ], [ 'insertOne' => [ $document ] ], [ 'replaceOne' => [ $filter, $replacement, $options ] ], [ 'updateMany' => [ $filter, $update, $options ] ], [ 'updateOne' => [ $filter, $update, $options ] ], ] post: | Arguments correspond to the respective operation methods. However, the ``writeConcern`` option is specified for the top-level bulk write operation instead of each individual operation. interface: phpmethod operation: MongoDB\\Collection::bulkWrite optional: true position: 1 --- source: ref: $options file: apiargs-common-param.yaml operation: MongoDB\\Collection::bulkWrite interface: phpmethod position: 2 ...