mongodbscalacasbah

Casbah 3.0.0 API : Where is the MongoDBObject?


In the getting started tutorial, we use MongoDBObject.

But I can't find it in the api.

Also, I don't understand how we can run this command : import com.mongodb.casbah.Imports._, can't find it in the API neither...


Solution

  • Here's your Imports object: https://github.com/mongodb/casbah/blob/master/casbah-core/src/main/scala/Implicits.scala#L141

    MongoDBObject comes from one of Casbah modules, casbah-commons. Check it out: https://github.com/mongodb/casbah/blob/master/casbah-commons/src/main/scala/MongoDBObject.scala