Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.aggregationAbstractValuetoString

toString

fun toString(simplified: Boolean): String

JSON representation of this expression.

By default, simplifications are enabled. Set simplified to false to disable simplifications.

override fun toString(): String

JSON representation of this expression.

Note that since this class represents a BSON value, and BSON libraries often only support documents, the actual value may be surrounded by some boilerplate (like an array or a useless value).