Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
I am using Linux Mint and my server is on Ubuntu 14.04.
*Location*: https://docs.mongodb.com/manual/reference/bios-example-collection/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36
*Referrer*: https://docs.mongodb.com/manual/reference/method/db.collection.find/
*Screen Resolution*: 1366 x 768
I am using Linux Mint and my server is on Ubuntu 14.04. *Location*: https://docs.mongodb.com/manual/reference/bios-example-collection/ *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36 *Referrer*: https://docs.mongodb.com/manual/reference/method/db.collection.find/ *Screen Resolution*: 1366 x 768
Description
Can you please add documents to search records on the bases of isodate?
I am looking for a solution where i need to fetch records between two ISODates.
My Collection record is something like this:
{
"_id" : "1241412fb99a11a0bc70032a2cb6059b",
"total_sold" : [
,
,
,
,
,
,
,
{ "some_field": "value", "created_at" : ISODate("2014-03-07T22:40:37Z"), } ],
"updated_at" : ISODate("2014-03-07T22:40:40Z")
}
I need to fetch all the records between total_sold.created_at : "2014-03-07T00:00:00Z" and "2014-03-09T00:00:00Z". using MongoYii plugin. I am unable to fetch records via mongo as well as php.