[DOCS-8090] Comment on: "manual/reference/bios-example-collection.txt" Created: 13/Jun/16  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: collector-298ba4e7, docs-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 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.



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:55:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.