Allows the definition of both a reader and a writer in one shot.
import reactivemongo.bson.{derived, BSONDocumentHandler} sealed trait Foo case class Bar(i: Int, s: String) extends Foo case class Baz(b: Boolean) extends Foo object Foo { implicit val codec: BSONDocumentHandler[Foo] = derived.codec }