Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val notificationDbObject: Option[DBObject] = notificationsColl.findOne(MongoDBObject("gnid" -> gnid.get))
- 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