Interface UpsertedUpdateResult<ID>

Overview

Represents the set of fields that are present in the result of a generic update* command performed on the Data API, when:

  • The upsert option is true, and
  • An upsert occurred.

See

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

Type Parameters

  • ID

Properties

upsertedCount: 1

The number of records that were upserted. Only one record can be upserted in an operation.

upsertedId: ID

The identifier of the upserted record.