one thing I came across is the boilerplate code when querying in a mongodb :
def findPagesWithGreaterId(pageid: String, limit: Int): List[Page] =
findAsListSortedLimit(MongoDBObject("_id" -> MongoDBObject("$gt" -> new ObjectId(pageid))), MongoDBObject("_id" -> 1), limit)
Is there a nice way of shortening the queries like in the above example?
(implicits are not handy i guess)
is there a common approach to it?
thanks in advance,
Stefan