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

    接口 ModifyResult<TSchema>

    This type will be completely removed and findOneAndUpdate, findOneAndDelete, and findOneAndReplace will then return the actual result document.

    interface ModifyResult<TSchema = Document> {
        lastErrorObject?: Document;
        ok: 0 | 1;
        value: null | WithId<TSchema>;
    }

    类型参数

    索引

    属性

    lastErrorObject?: Document
    ok: 0 | 1
    value: null | WithId<TSchema>