suspend fun MongoClient.replaceDocumentsWithOptionsAwait(collection: String, query: JsonObject, replace: JsonObject, options: UpdateOptions): MongoClientUpdateResult
Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
query
- query used to match the documents
replace
- all matching documents will be replaced with this
options
- options to configure the replace
resultHandler
- will be called when complete
Return