How do I write a MongoDB shell query that will return the documents for all objects created after a specific date?
Collections like:
{
"_id" : ObjectId("59918c9014450171039b7e1f"),
"cont_id" : "59918c9014450171039b7e1d",
"systemdate" : ISODate("2017-07-25T00:09:00.567Z"),
}
db.itemtable.count({"systemdate" : { $gte: ISODate("2017-07-25T00:00:00.000Z")}})
Returns - 15210
db.itemtable.count({'_id': {'$gt' : ObjectId("59918c9014450171039b7e1f")}})
Returns - 987652
Thanks! Bharathi