vertx / io.vertx.kotlin.ext.mongo / io.vertx.ext.mongo.MongoService

Extensions for io.vertx.ext.mongo.MongoService

bulkWriteAwait

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

bulkWriteWithOptionsAwait

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

countAwait

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

createCollectionAwait

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

createIndexAwait

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

createIndexWithOptionsAwait

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

distinctAwait

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

distinctWithQueryAwait

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

dropCollectionAwait

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

dropIndexAwait

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

findAwait

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

findOneAndDeleteAwait

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

findOneAndDeleteWithOptionsAwait

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

findOneAndReplaceAwait

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

findOneAndReplaceWithOptionsAwait

suspend fun MongoService.findOneAndReplaceWithOptionsAwait(collection: String, query: JsonObject, update: JsonObject, findOptions: FindOptions, updateOptions: UpdateOptions): JsonObject

findOneAndUpdateAwait

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

findOneAndUpdateWithOptionsAwait

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

findOneAwait

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

findWithOptionsAwait

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

getCollectionsAwait

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

insertAwait

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

insertWithOptionsAwait

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

listIndexesAwait

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

removeDocumentAwait

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

removeDocumentWithOptionsAwait

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

removeDocumentsAwait

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

removeDocumentsWithOptionsAwait

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

replaceDocumentsAwait

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

replaceDocumentsWithOptionsAwait

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

runCommandAwait

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

saveAwait

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

saveWithOptionsAwait

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

updateCollectionAwait

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

updateCollectionWithOptionsAwait

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