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

    接口 InsertOneResult<TSchema>

    interface InsertOneResult<TSchema = Document> {
        acknowledged: boolean;
        insertedId: InferIdType<TSchema>;
    }

    类型参数

    索引

    属性

    acknowledged: boolean

    Indicates whether this write result was acknowledged. If not, then all other members of this result will be undefined

    insertedId: InferIdType<TSchema>

    The identifier that was inserted. If the server generated the identifier, this value will be null as the driver does not have access to that data