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

findAwait

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

Find matching documents in the specified collection

Parameters

collection - the collection

query - query used to match documents

resultHandler - will be provided with list of documents

Return