Its quite intuitive.
Construction:
val a: MongoDBOBject = DBObject("a" -> DBObject("b" -> "c")) // results in { "a" : { "b" : "c"}}
access to internal fields with dotted notation :
val c = a.expand[String]("ab")
search for the internal object as a DBObject, so you can perform the same operations with it as with the parent object:
val b = a.as[DBObject]("a")
source share