writeTo

override fun writeTo(writer: ERROR CLASS: Symbol not found for BsonValueWriter)(source)

Writes the entire pipeline into writer.

This function is similar to BsonNode.writeTo, with the difference that expressions generate documents, and pipelines generate arrays.

Using this method will thus write an array containing the different stages.