API 参考
    正在准备搜索索引...

    接口 InsertManyResult<TSchema>

    interface InsertManyResult<TSchema = Document> {
        acknowledged: boolean;
        insertedCount: number;
        insertedIds: { [key: number]: InferIdType<TSchema> };
    }

    类型参数

    索引

    属性

    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