MongoDB\InsertManyResult::getInsertedCount()
返回已插入的文档数。
function getInsertedCount(): integer
仅当写入已确认时才应调用此方法。
插入的文档数。
MongoDB\Exception\BadMethodCallException如果调用此方法并且写入操作使用了未确认的写关注。
MongoDB\Exception\BadMethodCallException
在此页面上