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

findOneAndDeleteWithOptionsAwait

suspend fun MongoClient.findOneAndDeleteWithOptionsAwait(collection: String, query: JsonObject, findOptions: FindOptions): JsonObject

Find a single matching document in the specified collection and delete it.

Parameters

collection - the collection

query - the query used to match the document

findOptions - options to configure the find

resultHandler - will be provided with the deleted document, if any

Return