Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8090

Comment on: "manual/reference/bios-example-collection.txt"

    XMLWordPrintableJSON

Details

    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-02-13T15:48:35Z"), }

      ,

      { "some_field": "value", "created_at" : ISODate("2014-02-14T10:26:19Z"), }

      ,

      { "some_field": "value", "created_at" : ISODate("2014-02-15T11:36:50Z"), }

      ,

      { "some_field": "value", "created_at" : ISODate("2014-02-17T09:35:19Z"), }

      ,

      { "some_field": "value", "created_at" : ISODate("2014-02-19T16:34:52Z"), }

      ,

      { "some_field": "value", "created_at" : ISODate("2014-02-21T12:06:10Z"), }

      ,

      { "some_field": "value", "created_at" : ISODate("2014-02-24T09:52:23Z"), }

      ,

      { "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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago