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

findOneAwait

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

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

Parameters

collection - the collection

query - the query used to match the document

fields - the fields

Return

JsonObject?

NOTE: This function has been automatically generated from io.vertx.ext.mongo.MongoClient using Vert.x codegen.