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

findOneAwait

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

Find a single matching document in the specified collection

Parameters

collection - the collection

query - the query used to match the document

fields - the fields

Return