As reported at http://stackoverflow.com/questions/5694575/mongodb-casbah-query-field-not-exist-or-specific-value
Have there been any changes on this bug? Not being able to do simple OR queries is a huge annoyance.
val queryOR = ($or ("x" $gte 15),("y" $gte "L"))
error: type mismatch;
found : com.mongodb.DBObject with com.mongodb.casbah.query.DSLDBObject
required: (String, Any)
There is a lot of refactoring and Technical Debt cleanup taking place right now for the next version of Casbah, which will fix this issue
Message: SCALA-30, SCALA-59- $or is not properly accepting nested values esp. from other DSL constructors
Fixed as part of parent issue overhaul.
There will be a beta out of 2.2 next week with fixes for this. In the meantime you can construct a normal DBObjecf without the query dsl as a perfectly fine workaround.
Message: Backports for QueryDSL