Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.aggregationPipelineChainLink

PipelineChainLink

A single link in the Pipeline chain.

End-users should not interact with this class. This class is provided as an implementation detail of AbstractPipeline. If you are not implementing your own pipeline type, you do not need to interact with this class at all.

Constructors

constructor(context: )

Creates an empty PipelineChainLink, corresponding to an empty aggregation pipeline.

Functions

toBsonList

fun toBsonList(): List<>

Converts this chain in a list of BSON documents, each representing a stage.

toList

fun toList(): List<BsonNode>

Converts this chain to a list of expressions.

toString

open override fun toString(): String

JSON representation of this pipeline.

withStage

Equivalent to Pipeline.withStage, but generating a chain link instead.

writeTo

fun writeTo(writer: ): 

Equivalent to Pipeline.writeTo.