object BSONString
BSONString utilities
import reactivemongo.api.bson.BSONString
BSONString("foo") match {
case BSONString(v) => v == "foo"
case _ => false
}
- Companion:
- class
Value members
Concrete methods
Returns the plain string representation for the given BSONString.
Returns the plain string representation for the given BSONString.
Extracts the string value if that
's a BSONString.
Extracts the string value if that
's a BSONString.
import reactivemongo.api.bson.{ BSONString, BSONValue }
def show(v: BSONValue): String = v match {
case BSONString(s) => s
case _ => "not-string"
}