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

# replaceDocumentsAwait

`suspend fun MongoClient.replaceDocumentsAwait(collection: String, query: JsonObject, replace: JsonObject): MongoClientUpdateResult`

Replace matching documents in the specified collection 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

`resultHandler` - will be called when complete

Return