(mongodb >=2.1.0)
MongoDB\Driver\Server::executeBulkWriteCommand â Execute write operations on this server using the bulkWrite command
$bulk, ?array $options = null): MongoDB\Driver\BulkWriteCommandResultExecutes one or more write operations on this server using the  bulkWrite command introduced in MongoDB 8.0.
A MongoDB\Driver\BulkWriteCommand can be constructed with one or more write operations of varying types (e.g. inserts, updates, and deletes). Each write operation may target a different collection.
The default value for the "writeConcern" option will be
inferred from an active transaction (indicated by the
"session" option), followed by the
connection URI.
bulk (MongoDB\Driver\BulkWriteCommand)Die auszufßhrenden Schreibvorgänge.
options
| Option | Type | Description |
|---|---|---|
| session | MongoDB\Driver\Session |
Eine Session, die mit dem Vorgang verknĂźpft werden soll. |
| writeConcern | MongoDB\Driver\WriteConcern |
Eine Schreibanweisung (Write Concern), das auf den Vorgang angewendet werden soll. |
Gibt bei Erfolg ein MongoDB\Driver\BulkWriteCommandResult zurĂźck.
bulk does not contain any write operations.bulk has already been executed. MongoDB\Driver\BulkWriteCommand objects may not be executed multiple times."session" in Kombination mit einer unbestätigten Schreibanweisung verwendet wird.