Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (x <- collection.findOne(MongoDBObject("_id"-> new ObjectId("58d2cfe5fbb1bb15209d3b02")))) println(x)
- val q_date = "ISODATE(" + "2017-01-26T07:00:00.000Z" + ")"
- for (x <- collection.findOne(MongoDBObject("db_date"-> q_date))) println(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement