Error using gte projection option with an ISODate objetc n Mongodb shell -
Error using gte projection option with an ISODate objetc n Mongodb shell -
i have collection timestamp field stored in isodate format. database populated 3rd party. subset of document looks like:
collection{ "_id" : "foobar/201310", "name" : "somename", "processedtime" : "2013-10-01t00:00:00.000z", "value" : 375439 . . . }
the info in processedtime
field looks 2014-10-21t12:13:12.056790
when query collection next query:
db.collection.find({},{processedtime:{$gte : isodate("2014-10-21t00:00:00.000z")}});
i error:
unsupported projection alternative "$gte", "code":13097";
i same error when alter isodate
in query "new date" or alter $gte
$gt
i using version 2.4.6
, there configuration piece or syntax problem query? wondering since info goes out nano seconds problem? have looked error , no 1 seems reporting query this.
db.collection.find({},{processedtime:{$gte : isodate("2014-10-21t00:00:00.000z")}});
should db.collection.find({processedtime:{$gte : "2014-10-21t00:00:00.000z"}});
.
mongodb isodate
Comments
Post a Comment