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

updateCollectionAwait

suspend fun MongoClient.updateCollectionAwait(collection: String, query: JsonObject, update: JsonObject): MongoClientUpdateResult

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

resultHandler - will be called when complete

Return