Interface NoUpsertUpdateOptions

Represents the set of fields that are present in the result of an update operation where no upsert occurred.

Field

upsertedCount - The number of documents that were upserted.

Field

upsertedId - This field is never present.

interface NoUpsertUpdateOptions {
    upsertedCount: 0;
    upsertedId?: undefined;
}

Properties

upsertedCount: 0

The number of documents that were upserted. This will always be undefined, since none occurred.

upsertedId?: undefined

This field is never present.