I know that objects in MongoDB can contain multiple levels of data (just the way JSON objects can). However, the Casbah driver tutorial only covers the creation of “flat” objects, where there is just one level of data. How can I create and work with multilevel objects with Casbah?
Share
Its pretty intuitive.
construction:
access to inner fields with dot notation:
retrieval of inner object as DBObject, so you can make the same operations with it as with parent object: