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

findOneAndReplaceWithOptionsAwait

suspend fun MongoClient.findOneAndReplaceWithOptionsAwait(collection: String, query: JsonObject, replace: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions): JsonObject?

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

Parameters

collection - the collection

query - the query used to match the document

replace - the replacement document

findOptions - options to configure the find

updateOptions - options to configure the update

Return

JsonObject?

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