Interface UpsertedUpdateOptions<Schema>

Represents the set of fields that are present in the result of an update operation when the upsert option is true, and an upsert occurred.

Field

upsertedId - The identifier of the upserted document.

Field

upsertedCount - The number of documents that were upserted.

interface UpsertedUpdateOptions<Schema> {
    upsertedCount: 1;
    upsertedId: IdOf<Schema>;
}

Type Parameters

Properties

upsertedCount: 1

The number of documents that were upserted.

upsertedId: IdOf<Schema>

The identifier of the upserted document (this will be an autogenerated ID if one was not provided).