fun <reified TResult : Any> MongoCollection<*>.distinct(fieldName: String): DistinctPublisher<TResult>
(source)
Gets the distinct values of the specified field name.
Parameters
Return
an iterable of distinct values
fun <reified TResult : Any> MongoCollection<*>.distinct(clientSession: ClientSession, fieldName: String): DistinctPublisher<TResult>
(source)
Gets the distinct values of the specified field name.
clientSession
- the client session
Parameters
Return
an iterable of distinct values
fun <reified TResult : Any> MongoCollection<*>.distinct(fieldName: String, filter: String): DistinctPublisher<TResult>
(source)
Gets the distinct values of the specified field name.
Parameters
Return
an iterable of distinct values
fun <reified TResult : Any> MongoCollection<*>.distinct(clientSession: ClientSession, fieldName: String, filter: String): DistinctPublisher<TResult>
(source)
Gets the distinct values of the specified field name.
clientSession
- the client session
Parameters
Return
an iterable of distinct values
fun <reified T : Any, reified TResult : Any> MongoCollection<*>.distinct(field: KProperty1<T, TResult>, filter: Bson = EMPTY_BSON): DistinctPublisher<TResult>
(source)
Gets the distinct values of the specified field name.
Parameters
Return
an iterable of distinct values
fun <reified T : Any, reified TResult : Any> MongoCollection<*>.distinct(clientSession: ClientSession, field: KProperty1<T, TResult>, filter: Bson = EMPTY_BSON): DistinctPublisher<TResult>
(source)
Gets the distinct values of the specified field name.
clientSession
- the client session
Parameters
Return
an iterable of distinct values