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.
upsert
upsertedId - The identifier of the upserted document.
upsertedCount - The number of documents that were upserted.
The number of documents that were upserted.
The identifier of the upserted document (this will be an autogenerated ID if one was not provided).
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.