|
MongoDB\Driver\BulkWrite::insertAdd an insert operation to the bulk Description
public mixed MongoDB\Driver\BulkWrite::insert
( array|object
$document
)Adds an insert operation to the MongoDB\Driver\BulkWrite. Parameters
Return Values
If the Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\BulkWrite::insert example
<?php The above example will output something similar to: object(MongoDB\BSON\ObjectID)#3 (1) { ["oid"]=> string(24) "54d51146bd21b91405401d92" } NULL NULL See Also
|