|
MongoDB\Driver\BulkWriteCommandResult::getInsertResultsReturns verbose results for successful inserts Description
final public MongoDB\BSON\Documentnull MongoDB\Driver\BulkWriteCommandResult::getInsertResults()
Since ParametersThis function has no parameters. Return Values
Returns a document containing the result of each successful insert
operation, or Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\BulkWriteCommandResult::getInsertResults example
The above example will output something similar to: object(MongoDB\BSON\ObjectId)#3 (1) { ["oid"]=> string(24) "67f7ee69783dcce702097b41" } object(stdClass)#8 (1) { ["0"]=> object(stdClass)#7 (1) { ["insertedId"]=> object(MongoDB\BSON\ObjectId)#6 (1) { ["oid"]=> string(24) "67f7ee69783dcce702097b41" } } } See Also
|