Interface NoUpsertUpdateResult

Represents the set of fields that are present in the result of some generic update command using the Data API where no upsert occurred.

Field

upsertedCount - The number of records that were upserted.

Field

upsertedId - This field is never present.

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

Properties

upsertedCount: 0

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

upsertedId?: undefined

This field is never present.