|
MongoDB\Driver\BulkWrite::insertAdd an insert operation to the bulk Description
public mixed MongoDB\Driver\BulkWrite::insert(arrayobject
$document )Adds an insert operation to the MongoDB\Driver\BulkWrite. Parameters
Return Values
Returns the Errors/Exceptions
Changelog
ExamplesExample #1 MongoDB\Driver\BulkWrite::insert example
The above example will output something similar to: object(MongoDB\BSON\ObjectId)#3 (1) { ["oid"]=> string(24) "67f58058d1a0aa2fd80d55d0" } string(9) "custom-id" object(MongoDB\BSON\ObjectId)#4 (1) { ["oid"]=> string(24) "0123456789abcdef01234567" } See Also
|