Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
Apparently we had this in our old documentation.
Can we please add some examples showing queries involving dates and timestamps from the commandline.
You need to quote things like $date on the shell.
Eg.
mongod> for(x = 0; x < 100;x++){db.qux.insert({a:new Date(new Date()-0+(1000*x)), x:x})}
|
mongodump -d test -c qux -q '{a:{"$gt":{ "$date" : 1364440668837}}}'
|