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

removeDocumentWithOptionsAwait

suspend fun MongoClient.removeDocumentWithOptionsAwait(collection: String, query: JsonObject, writeOption: WriteOption): MongoClientDeleteResult

Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result

Parameters

collection - the collection

query - query used to match document

writeOption - the write option to use

resultHandler - will be called when complete

Return