Maps the following native scala types to BsonValues:
BsonValue => BsonValue
BigDecimal
=> BsonDecimal128Boolean => BsonBoolean
String => BsonString
Array[Byte] => BsonBinary
Regex => BsonRegex
Date => BsonDateTime
Decimal128
=> BsonDecimal128ObjectId => BsonObjectId
Int => BsonInt32
Long => BsonInt64
Double => BsonDouble
None => BsonNull
immutable.Document => BsonDocument
mutable.Document => BsonDocument
Option[T] => BsonValue
whereT
is one of the above typesSeq[(String, T)] => BsonDocument
whereT
is one of the above typesSeq[T] => BsonArray
whereT
is one of the above types
- Companion:
- class
Type members
Inherited classlikes
Transforms BigDecimal
to BsonDecimal128
Transforms BigDecimal
to BsonDecimal128
- Inherited from:
- DefaultBsonTransformers
Transforms Array[Byte]
to BsonBinary
Transforms Array[Byte]
to BsonBinary
- Inherited from:
- DefaultBsonTransformers
Transforms Boolean
to BsonBoolean
Transforms Boolean
to BsonBoolean
- Inherited from:
- DefaultBsonTransformers
Noop transformer for BsonValue
s
Noop transformer for BsonValue
s
- Inherited from:
- DefaultBsonTransformers
Transforms Date
to BsonDateTime
Transforms Date
to BsonDateTime
- Inherited from:
- DefaultBsonTransformers
Transforms Decimal128
to BsonDecimal128
Transforms Decimal128
to BsonDecimal128
- Inherited from:
- DefaultBsonTransformers
Transforms Double
to BsonDouble
Transforms Double
to BsonDouble
- Inherited from:
- DefaultBsonTransformers
Transforms immutable.Document
to BsonDocument
Transforms immutable.Document
to BsonDocument
- Inherited from:
- LowPrio
Transforms mutable.Document
to BsonDocument
Transforms mutable.Document
to BsonDocument
- Inherited from:
- LowPrio
Transforms ObjectId
to BsonObjectId
Transforms ObjectId
to BsonObjectId
- Inherited from:
- DefaultBsonTransformers
Transforms String
to BsonString
Transforms String
to BsonString
- Inherited from:
- DefaultBsonTransformers
Implicits
Inherited implicits
Transforms Seq[(String, T)]
to BsonDocument
Transforms Seq[(String, T)]
to BsonDocument
- Type parameters:
- T
the type of the values
- Value parameters:
- transformer
implicit transformer for type
T
- Returns:
a BsonDocument containing the values
- Inherited from:
- LowPrio
Transforms Option[T]
to BsonValue
Transforms Option[T]
to BsonValue
- Inherited from:
- DefaultBsonTransformers
Transforms Seq[T]
to BsonArray
Transforms Seq[T]
to BsonArray
- Type parameters:
- T
the type of the values
- Value parameters:
- transformer
implicit transformer for type
T
- Returns:
a BsonArray containing all the values
- Inherited from:
- LowPrio