Optional
arrayOptional
collationSpecifies a collation.
The filter used to determine if a document should be updated. For an updateOne operation, the first match is updated.
Optional
hintThe index to use. If specified, then the query system will only consider plans using the hinted index.
The namespace for the write.
A namespace is a combination of the database name and the name of the collection: <database-name>.<collection>
.
All documents belong to a namespace.
The modifications to apply. The value can be either:
UpdateFilter
Optional
upsertWhen true, creates a new document if no document matches the query.
A set of filters specifying to which array elements an update should apply.