Advertisement
Guest User

Untitled

a guest
Jun 24th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. val notificationDbObject: Option[DBObject] = notificationsColl.findOne(MongoDBObject("gnid" -> gnid.get))
  2. notificationDbObject.map{x => List(MongoDBObject("$match" -> MongoDBObject("_id" -> MongoDBObject("$lte" -> x.as[ObjectId]("_id")))}.getOrElse{List.empty}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement