fun <reified T : Any> distinct(fieldName: String, filter: Bson = EMPTY_BSON): CoroutineDistinctPublisher<T>
(source)
Gets the distinct values of the specified field name.
Parameters
Mongodb
.driver.manual reference/command/distinct/ Distinct
fun <reified T : Any> distinct(clientSession: ClientSession, fieldName: String, filter: Bson): CoroutineDistinctPublisher<T>
(source)
Gets the distinct values of the specified field name.
clientSession
- the client session with which to associate this operation
Parameters
Mongodb
.driver.manual reference/command/distinct/ Distinct
Mongodb
.server.release 3.6
Since
1.7
fun <reified Type : Any> distinct(fieldName: String, filter: String): CoroutineDistinctPublisher<Type>
(source)
Gets the distinct values of the specified field name.
Parameters
fun <reified Type : Any> distinct(field: KProperty1<T, Type>, filter: Bson = EMPTY_BSON): CoroutineDistinctPublisher<Type>
(source)
Gets the distinct values of the specified field.
Parameters