Optionally parses this value as a T one.
Optionally parses this value as a T one.
Some successfully parsed value, or None if fails
import reactivemongo.api.bson.BSONValue def foo(v: BSONValue): Option[String] = v.asOpt[String]
Tries to parse this value as a T one.
Tries to parse this value as a T one.
import scala.util.Try import reactivemongo.api.bson.BSONValue def foo(v: BSONValue): Try[String] = v.asTry[String]
The code indicating the BSON type for this value as Byte
The code indicating the BSON type for this value as Byte
The code indicating the BSON type for this value
The code indicating the BSON type for this value
Returns the boolean equivalent value
Returns the boolean equivalent value
Converts this number into a Double.
Converts this number into a Double.
Converts this number into a Float.
Converts this number into a Float.
Converts this number into an Int.
Converts this number into an Int.
Converts this number into a Long.
Converts this number into a Long.
A BSON Double.
reactivemongo.api.bson.BSONDouble(1.23D)