Issue with Querying for Timestamp

17 views
Skip to first unread message

Aditya Kanodia

unread,
Sep 27, 2017, 6:30:38 AM9/27/17
to Morphia
Hi, 

I am trying to read the oplogs for particular timestamp and the query used in shell is working fine:

Query: db.oplog.rs.find({"ts" : {$gte:Timestamp(1500036794, 0)}})

The Same query I am not able to convert in morphia. when tried got the following Query from morphia which returned no results :

{ "ts" : { "$gte" : { "className" : "org.bson.BsonTimestamp" , "seconds" : 1500036794 , "inc" : 0}}}

Could someone help me on this issue

Thanks in Advance

Regards
Aditya 


Reply all
Reply to author
Forward
0 new messages