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

findOneAndDeleteAwait

suspend fun MongoClient.findOneAndDeleteAwait(collection: String, query: JsonObject): 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

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

Return