Skip to content

MultiplatformMongoAggregationPipeline

An aggregation pipeline built on top of the Multiplatform driver.

To start a pipeline, call opensavvy.ktmongo.api.MongoCollection.aggregate.

External resources

Properties

context

Functions

asIterable

asIterable

Access the data of this pipeline as a MongoIterable.

The methods of MongoIterable are available directly on this type as extension methods, there is no need to convert to a MongoIterable yourself.

countTo

abstract override fun <Out : Any> countTo(field: Field<Out, Number>): MultiplatformMongoAggregationPipeline<Out>

debug

embedInLookup

@LowLevelApi
abstract fun embedInLookup(writer: BsonFieldWriter)

embedInUnionWith

group

limit

abstract override fun limit(amount: Long): MultiplatformMongoAggregationPipeline<Document>
abstract override fun limit(amount: Int): MultiplatformMongoAggregationPipeline<Document>

lookup

match

matchExpr

project

sample

abstract override fun sample(size: Int): MultiplatformMongoAggregationPipeline<Document>

set

abstract override fun <Out : Any> set(block: SetStageOperators<Document, Out>.() -> Unit): MultiplatformMongoAggregationPipeline<Out>

skip

abstract override fun skip(amount: Long): MultiplatformMongoAggregationPipeline<Document>
abstract override fun skip(amount: Int): MultiplatformMongoAggregationPipeline<Document>

sort

toString

abstract override fun toString(): String

unionWith

unsafeCast

unset

unwind

withStage

writeTo

@LowLevelApi
abstract fun writeTo(writer: BsonValueWriter)