kmongo / org.litote.kmongo.reactivestreams / com.mongodb.reactivestreams.client.MapReducePublisher

Extensions for com.mongodb.reactivestreams.client.MapReducePublisher

ascendingSort

Sets the sort criteria with specified ascending properties to apply to the query.

fun <T> MapReducePublisher<T>.ascendingSort(vararg properties: KProperty<*>): MapReducePublisher<T>

descendingSort

Sets the sort criteria with specified descending properties to apply to the query.

fun <T> MapReducePublisher<T>.descendingSort(vararg properties: KProperty<*>): MapReducePublisher<T>

filter

Sets the query filter to apply to the query.

fun <T> MapReducePublisher<T>.filter(filter: String): MapReducePublisher<T>

scope

Sets the global variables that are accessible in the map, reduce and finalize functions.

fun <T> MapReducePublisher<T>.scope(scope: String): MapReducePublisher<T>

sort

Sets the sort criteria to apply to the query.

fun <T> MapReducePublisher<T>.sort(sort: String): MapReducePublisher<T>