An addition operation for BSONValue, so that it forms an additive semigroup with the BSON value kind.
Returns a String representation for the value.
Returns a String representation for the value.
import reactivemongo.api.bson.{ BSONDocument, BSONValue } def foo(v: BSONValue): String = BSONValue.pretty(v) foo(BSONDocument("bar" -> 1)) // { "bar": 1 }
BSONValue factories and utilities