distinct
abstract fun <TResult : Any> distinct(fieldName: String, resultClass: KClass<out TResult>): DistinctFlow<TResult>
Content copied to clipboard
Gets the distinct values of the specified field name.
Return
an iterable of distinct values
Parameters
field Name
the field name
result Class
the default class to cast any distinct items into.
abstract fun <TResult : Any> distinct( fieldName: String, filter: Bson, resultClass: KClass<out TResult>): DistinctFlow<TResult>
Content copied to clipboard
Gets the distinct values of the specified field name.
Return
an iterable of distinct values
Parameters
field Name
the field name
filter
the query filter
result Class
the default class to cast any distinct items into.
abstract fun <TResult : Any> distinct( clientSession: ClientSession, fieldName: String, resultClass: KClass<out TResult>): DistinctFlow<TResult>
Content copied to clipboard
Gets the distinct values of the specified field name.
Return
an iterable of distinct values
Since
3.6
Parameters
client Session
the client session with which to associate this operation
field Name
the field name
result Class
the default class to cast any distinct items into.
abstract fun <TResult : Any> distinct( clientSession: ClientSession, fieldName: String, filter: Bson, resultClass: KClass<out TResult>): DistinctFlow<TResult>
Content copied to clipboard
Gets the distinct values of the specified field name.
Return
an iterable of distinct values
Since
3.6
Parameters
client Session
the client session with which to associate this operation
field Name
the field name
filter
the query filter
result Class
the default class to cast any distinct items into.