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

# distinctWithQueryAwait

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

Gets the distinct values of the specified field name filtered by specified query. Return a JsonArray containing distinct values (eg: 1,89)

### Parameters

`collection` - the collection

`fieldName` - the field name

`resultClassname` -

`query` - the query

Return