simplify

abstract fun simplify(): BsonNode?(source)

Returns a simplified (but equivalent) expression to the current expression.

Returns null when the current expression was simplified into a no-op (= it does nothing).