Skip to content

MongoDB driver for Kotlin (coroutines)opensavvy.ktmongo.coroutinesMongoAggregationPipeline

MongoAggregationPipeline

Functions

asFlow

asIterable

open override fun asIterable(documentType: Class<Output>): MongoIterable<Output>

asIterable

embedInUnionWith

open fun embedInUnionWith(writer: ): 

first

inline suspend fun <Document : Any> LazyMongoIterable<Document>.first(): Document

firstOrNull

forEach

inline suspend fun <Document : Any> LazyMongoIterable<Document>.forEach(noinline action: suspend (Document) -> Unit)

group

open fun <Out : Any> group(block: <Output, Out>.() -> Unit): MongoAggregationPipeline<Out>

limit

match

open fun match(filter: <Output>.() -> Unit): MongoAggregationPipeline<Output>

project

open fun project(block: <Output>.() -> Unit): MongoAggregationPipeline<Output>

reinterpret

sample

set

open fun set(block: <Output>.() -> Unit): MongoAggregationPipeline<Output>

skip

open fun skip(amount: Int): MongoAggregationPipeline<Output>

sort

open fun sort(block: <Output>.() -> Unit): MongoAggregationPipeline<Output>

toList

inline suspend fun <Document : Any> LazyMongoIterable<Document>.toList(): List<Document>

toSet

inline suspend fun <Document : Any> LazyMongoIterable<Document>.toSet(): Set<Document>

unionWith

unset

open fun unset(block: <Output>.() -> Unit): MongoAggregationPipeline<Output>

withStage