writeTo

fun writeTo(writer: ERROR CLASS: Symbol not found for BsonValueWriter): ERROR CLASS: Unresolved name: with(source)

Equivalent to Pipeline.writeTo.