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

findOneAndReplaceAwait

suspend fun MongoClient.findOneAndReplaceAwait(collection: String, query: JsonObject, replace: JsonObject): JsonObject?

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

Parameters

collection - the collection

query - the query used to match the document

replace - the replacement document

Return

JsonObject?

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