Interface GuaranteedUpdateResult<N>

Overview

Represents the set of fields that are guaranteed to be present in the result of a generic update* command performed on the Data API.

✏️Note: Depending on whether the update operation is updateOne or updateMany, the N type parameter can be either 1 or number, respectively.

See

GenericUpdateResult

interface GuaranteedUpdateResult<N> {
    matchedCount: N;
    modifiedCount: N;
}

Type Parameters

  • N extends number

Properties

matchedCount: N

The number of records that matched the filter.

modifiedCount: N

The number of records that were actually modified.