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

# findOneAndUpdateAwait

`suspend fun MongoClient.findOneAndUpdateAwait(collection: String, query: JsonObject, update: JsonObject): JsonObject?`

Suspending version of method io.vertx.ext.mongo.MongoClient.findOneAndUpdate

### Parameters

`collection` - the collection

`query` - the query used to match the document

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

Return

JsonObject?

NOTE: This function has been automatically generated from io.vertx.ext.mongo.MongoClient using Vert.x codegen.