suspend fun MongoClient.findOneAndReplaceWithOptionsAwait(collection: String, query: JsonObject, replace: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions): JsonObject
Find a single matching document in the specified collection and replace it.
query
- the query used to match the document
replace
- the replacement document
findOptions
- options to configure the find
updateOptions
- options to configure the update
resultHandler
- will be provided with the document, if any
Return