MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation • PipelineChainLink • toBsonList
toBsonList¶
fun toBsonList(): List<>
Converts this chain in a list of BSON documents, each representing a stage.
The first element of the returned list is the root of the chain, followed by the second element of the chain, etc.