Interface UpsertedUpdateResult<ID>

Represents the set of fields that are present in the result of some generic update command using the Data API when the upsert option is true, and an upsert occurred.

Field

upsertedId - The identifier of the upserted record.

Field

upsertedCount - The number of records that were upserted.

interface UpsertedUpdateResult<ID> {
    upsertedCount: 1;
    upsertedId: ID;
}

Type Parameters

  • ID

Properties

upsertedCount: 1

The number of records that were upserted.

upsertedId: ID

The identifier of the upserted record.