UpdateOneResult

constructor(updated: Boolean, upsertedId: Any?)

Parameters

updated

boolean indicating that a document was updated.

upsertedId

primary key of the new document if created.