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

Extensions for com.mongodb.reactivestreams.client.FindPublisher

filter

Sets the query filter to apply to the query.

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

map

Maps a value and returns the new FindPublisher.

fun <I, O> FindPublisher<I>.map(mapper: (I?) -> O?): FindPublisher<O>

projection

Sets a document describing the fields to return for all matching documents.

fun <T> FindPublisher<T>.projection(projection: String): FindPublisher<T>
fun <T> FindPublisher<T>.projection(vararg projections: KProperty<*>): FindPublisher<T>

sort

Sets the sort criteria to apply to the query.

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