Interface ModifyResult<Schema>

Represents the result of a findOneAnd* operation (e.g. findOneAndUpdate)

Field

value - The document that was found and modified.

interface ModifyResult<Schema> {
    ok: number;
    value: null | WithId<Schema>;
}

Type Parameters

Properties

Properties

ok: number

If the operation was ok.

value: null | WithId<Schema>

The document that was found and modified, or null if nothing matched.