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

removeDocumentsWithOptionsAwait

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

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

Parameters

collection - the collection

query - query used to match documents

writeOption - the write option to use

resultHandler - will be called when complete

Return