OptionalcollationThe filter used to determine if a document should be replaced. For a replaceOne operation, the first match is replaced.
OptionalhintThe 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 document with which to replace the matched document.
OptionalupsertWhen true, creates a new document if no document matches the query.
Specifies a collation.