Produces a T
instance of the given BSON value, if there is an implicit BSONReader[B, T]
in the scope.
Produces a T
instance of the given BSON value, if there is an implicit BSONReader[B, T]
in the scope.
Prefer readDocument
over this one if you want to deserialize BSONDocuments
.
Produces a T
instance of the given BSONDocument
, if there is an implicit BSONReader[BSONDocument, T]
in the scope.
Produces a BSONValue
instance of the given T
value, if there is an implicit BSONWriter[T, B]
in the scope.
Produces a BSONValue
instance of the given T
value, if there is an implicit BSONWriter[T, B]
in the scope.
Prefer writeDocument
over this one if you want to serialize T
instances.
Produces a BSONDocument
of the given T
instance, if there is an implicit BSONWriter[T, BSONDocument]
in the scope.