vertx / io.vertx.kotlin.ext.mongo / io.vertx.ext.mongo.MongoClient / replaceDocumentsWithOptionsAwait

# replaceDocumentsWithOptionsAwait

`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

### Parameters

`collection` - the collection

`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