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

Extensions for io.vertx.ext.mongo.MongoClient

bulkWriteAwait

suspend fun MongoClient.bulkWriteAwait(collection: String, operations: List<BulkOperation>): MongoClientBulkWriteResult?

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

bulkWriteWithOptionsAwait

suspend fun MongoClient.bulkWriteWithOptionsAwait(collection: String, operations: List<BulkOperation>, bulkWriteOptions: BulkWriteOptions): MongoClientBulkWriteResult?

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

countAwait

suspend fun MongoClient.countAwait(collection: String, query: JsonObject): Long

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

createCollectionAwait

suspend fun MongoClient.createCollectionAwait(collectionName: String): Unit

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

createIndexAwait

suspend fun MongoClient.createIndexAwait(collection: String, key: JsonObject): Unit

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

createIndexWithOptionsAwait

suspend fun MongoClient.createIndexWithOptionsAwait(collection: String, key: JsonObject, options: IndexOptions): Unit

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

distinctAwait

suspend fun MongoClient.distinctAwait(collection: String, fieldName: String, resultClassname: String): JsonArray

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

distinctWithQueryAwait

suspend fun MongoClient.distinctWithQueryAwait(collection: String, fieldName: String, resultClassname: String, query: JsonObject): JsonArray

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

dropCollectionAwait

suspend fun MongoClient.dropCollectionAwait(collection: String): Unit

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

dropIndexAwait

suspend fun MongoClient.dropIndexAwait(collection: String, indexName: String): Unit

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

findAwait

suspend fun MongoClient.findAwait(collection: String, query: JsonObject): List<JsonObject>

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

findOneAndDeleteAwait

suspend fun MongoClient.findOneAndDeleteAwait(collection: String, query: JsonObject): JsonObject?

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

findOneAndDeleteWithOptionsAwait

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

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

findOneAndReplaceAwait

suspend fun MongoClient.findOneAndReplaceAwait(collection: String, query: JsonObject, replace: JsonObject): JsonObject?

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

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

findOneAndUpdateAwait

suspend fun MongoClient.findOneAndUpdateAwait(collection: String, query: JsonObject, update: JsonObject): JsonObject?

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

findOneAndUpdateWithOptionsAwait

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

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

findOneAwait

suspend fun MongoClient.findOneAwait(collection: String, query: JsonObject, fields: JsonObject): JsonObject?

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

findWithOptionsAwait

suspend fun MongoClient.findWithOptionsAwait(collection: String, query: JsonObject, options: FindOptions): List<JsonObject>

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

getCollectionsAwait

suspend fun MongoClient.getCollectionsAwait(): List<String>

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

insertAwait

suspend fun MongoClient.insertAwait(collection: String, document: JsonObject): String?

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

insertWithOptionsAwait

suspend fun MongoClient.insertWithOptionsAwait(collection: String, document: JsonObject, writeOption: WriteOption): String?

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

listIndexesAwait

suspend fun MongoClient.listIndexesAwait(collection: String): JsonArray

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

removeDocumentAwait

suspend fun MongoClient.removeDocumentAwait(collection: String, query: JsonObject): MongoClientDeleteResult?

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

removeDocumentWithOptionsAwait

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

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

removeDocumentsAwait

suspend fun MongoClient.removeDocumentsAwait(collection: String, query: JsonObject): MongoClientDeleteResult?

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

removeDocumentsWithOptionsAwait

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

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

replaceDocumentsAwait

suspend fun MongoClient.replaceDocumentsAwait(collection: String, query: JsonObject, replace: JsonObject): MongoClientUpdateResult?

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

replaceDocumentsWithOptionsAwait

suspend fun MongoClient.replaceDocumentsWithOptionsAwait(collection: String, query: JsonObject, replace: JsonObject, options: UpdateOptions): MongoClientUpdateResult?

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

runCommandAwait

suspend fun MongoClient.runCommandAwait(commandName: String, command: JsonObject): JsonObject?

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

saveAwait

suspend fun MongoClient.saveAwait(collection: String, document: JsonObject): String?

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

saveWithOptionsAwait

suspend fun MongoClient.saveWithOptionsAwait(collection: String, document: JsonObject, writeOption: WriteOption): String?

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

updateCollectionAwait

suspend fun MongoClient.updateCollectionAwait(collection: String, query: JsonObject, update: JsonObject): MongoClientUpdateResult?

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

updateCollectionWithOptionsAwait

suspend fun MongoClient.updateCollectionWithOptionsAwait(collection: String, query: JsonObject, update: JsonObject, options: UpdateOptions): MongoClientUpdateResult?

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