Interface InsertManyResult<TSchema>

Type Parameters

Hierarchy

  • InsertManyResult

Properties

acknowledged: boolean

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

insertedCount: number

The number of inserted documents for this operations为此操作插入的文档数

insertedIds: {
    [key: number]: InferIdType<TSchema>;
}

Map of the index of the inserted document to the id of the inserted document插入文档的索引到插入文档的id的映射

Type declaration

Generated using TypeDoc