See compat$ and ValueConverters.
Note that as there is not a JSON equivalent for each BSON value
(BSONDateTime
, or even distinction between BSON long/int).
So for example, using the default JSON handlers,
a same Long
property can be written in some documents
as BSON long (NumberLong
), and in some other as BSON integer
(see ValueConverters.toNumber), which is ok to read all these documents,
but can impact the MongoDB queries (same for date/time values that
will be serialized as BSON string, rather than BSON date/time or timestamp).
- Companion:
- class
Type members
Inherited types
Implicits
Inherited implicits
See syntax:
See syntax:
{ "$oid": "<ObjectId bytes>" }
- See also:
dsl.objectID
- Inherited from:
- ValueConverters
@SuppressWarnings(scala.Array.apply[java.lang.String]("NullParameter")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
- Inherited from:
- ToValue