Interface UpdateResult<TSchema>

TSchema is the schema of the collection是集合的架构

Type Parameters

Hierarchy

  • UpdateResult

Properties

acknowledged: boolean

Indicates whether this write result was acknowledged. If not, then all other members of this result will be undefined指示是否已确认此写入结果。如果不是,则此结果的所有其他成员都将未定义

matchedCount: number

The number of documents that matched the filter与筛选器匹配的文档数

modifiedCount: number

The number of documents that were modified已修改的文档数

upsertedCount: number

The number of documents that were upserted被打乱顺序的文档数

upsertedId: null | InferIdType<TSchema>

The identifier of the inserted document if an upsert took place如果发生追加销售,则插入文档的标识符

Generated using TypeDoc