MongoDB\BulkWriteResult::getUpsertedCount()
定义
Return Values
The total number of documents that were upserted by all update and replace operations in the bulk write.
错误/异常
MongoDB\Exception\BadMethodCallException
如果调用此方法并且写入操作使用了未确认的写关注。
The total number of documents that were upserted by all update and replace operations in the bulk write.
MongoDB\Exception\BadMethodCallException
如果调用此方法并且写入操作使用了未确认的写关注。