Interface
UpdateResult
The result of an update or replace.
interface UpdateResultDefined in packages/driver/src/update.ts:116
Properties#
acknowledged
#readonly acknowledged: trueAlways true; a failed update throws instead.
Defined in packages/driver/src/update.ts:118
matchedCount
#readonly matchedCount: numberHow many documents matched the filter.
Defined in packages/driver/src/update.ts:120
modifiedCount
#readonly modifiedCount: numberHow many documents actually changed. A document whose stored bytes are identical after the update is not counted.
Defined in packages/driver/src/update.ts:125
upsertedId
#readonly upsertedId: CustomId | nullThe _id of the inserted document when an upsert inserted one, otherwise
null. In that case matchedCount is 0.
Defined in packages/driver/src/update.ts:130