本页内容
MongoDB\InsertManyResult::getInsertedCount()
返回插入的文档数量。
function getInsertedCount(): integer
此方法仅在写入已确认的情况下调用。
插入的文档数量。
如果此方法被调用,并且写入操作使用了未确认的写入关注度,将抛出 MongoDB\Exception\BadMethodCallException。.
MongoDB\Exception\BadMethodCallException
MongoDB\Driver\WriteResult::getInsertedCount()
返回
InsertManyResult 类
下一页
getInsertedIds()