OptionalcollationThe filter to limit the replaced document.
OptionalhintThe index to use. If specified, then the query system will only consider plans using the hinted index.
The document with which to replace the matched document.
OptionalupsertWhen true, creates a new document if no document matches the query.
Specifies a collation.