I'm using ReactiveMongo without the Play fremework.
I'm trying to write the equivalent of the following simple MongoDB query :
db.oplog.rs.find({"o.TimeCreated":{"$gt": ISODate("2014-09-30T10:00:00.000Z")}})
I've tried things like :
val query = BSONDocument(
"o.TimeCreated" -> BSONDocument("$gt" -> BSONDateTime(ts))) // ts is the timestamp corresponding to the date "2014-09-30T10:00:00.000Z"
hoping that the "$gt" operator would work for comparing two BSONDateTime objects, assuming the value of "o.TimeCreated" would internally be represented as a BSONDateTime object.
But I can't seem to figure out how to make the query work (no data is returned).
Any suggestions ? Thanks !