Quick tutorial on Casbah, Scala’s MongoDB driver

(image from http://www.digitalcraftstudios.com)

For the past couple of months I have been playing with Scala, Casbah (Scala’s MongoDB driver) and Salat (a serialization library for json and bison).

For the most part, it’s been a fun experience, although the documentation on Casbah is not as great as I would have hoped. A guide does exists, but is not exhaustive. If like me you find yourself spending quite a bit of time looking for things not contained in it, here are some code snippets and I hope can act as a tutorial of sort on how to perform certain operations using Casbah.

Continue reading “Quick tutorial on Casbah, Scala’s MongoDB driver”

Quick tutorial on Casbah, Scala’s MongoDB driver