toBsonList

fun toBsonList(): List<ERROR CLASS: Symbol not found for Bson>(source)

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.