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