Search Functions

Info

MongoDAO Search Functions

Demo

Setup imports

// Filter helper functions
import dev.mongocamp.driver.mongodb.Filter._
// sort helper functions
import dev.mongocamp.driver.mongodb.Sort._
// implicits like Document from Map ...
import dev.mongocamp.driver.mongodb._

Execute Search

val females = PersonDAO.find(Map("gender" -> "female"), 
    sortByKey("name")).resultList()