Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val notificationDbObject: Option[DBObject] = notificationsColl.findOne(MongoDBObject("gnid" -> gnid.get))
- if (notificationDbObject.nonEmpty) {
- List(MongoDBObject("$match" -> MongoDBObject("_id" -> MongoDBObject("$lte" -> notificationDbObject.get.as[ObjectId]("_id")))))
- } else {
- Nil
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement