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

# updateCollectionWithOptionsAwait

`suspend fun MongoClient.updateCollectionWithOptionsAwait(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions): MongoClientUpdateResult`

Update 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

`update` - used to describe how the documents will be updated

`options` - options to configure the update

`resultHandler` - will be called when complete

Return