Class BulkWriteResult

The result of a bulk write.大容量写入的结果。

Hierarchy

  • BulkWriteResult

Properties

deletedCount: number

Number of documents deleted.已删除的文档数。

insertedCount: number

Number of documents inserted.

insertedIds: {
    [key: number]: any;
}

Inserted document generated Id's, hash key is the index of the originating operation插入文档生成的Id,哈希键是原始操作的索引

Type declaration

  • [key: number]: any
matchedCount: number

Number of documents matched for update.要更新的匹配文档数。

modifiedCount: number

Number of documents modified.修改的文档数。

result: BulkResult
upsertedCount: number

Number of documents upserted.无序发送的文档数。

upsertedIds: {
    [key: number]: any;
}

Upserted document generated Id's, hash key is the index of the originating operation转换后的文档生成的Id,哈希键是原始操作的索引

Type declaration

  • [key: number]: any

Accessors

  • get ok(): number
  • Evaluates to true if the bulk operation correctly executes如果批量操作正确执行,则计算为true

    Returns number

Methods

  • Returns the upserted id at the given index返回给定索引处混乱的id

    Parameters

    • index: number

    Returns undefined | Document

  • Returns the number of write errors off the bulk operation返回大容量操作中的写入错误数

    Returns number

  • Returns true if the bulk operation contains a write error如果大容量操作包含写入错误,则返回true

    Returns boolean

  • Parameters

    Returns {
        [key: number]: any;
    }

    • [key: number]: any

Generated using TypeDoc