[DOCS-9869] Comment on: "manual/reference/operator/aggregation/range.txt" Created: 07/Feb/17  Updated: 11/Sep/17  Resolved: 11/Sep/17

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Blocker - P1
Reporter: Francis Asante Assignee: Jeffrey Allen
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/manual/reference/operator/aggregation/range/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
Referrer: https://docs.mongodb.com/manual/reference/operator/aggregation-array/
Screen Resolution: 1440 x 900


Participants:
Days since reply: 6 years, 22 weeks, 2 days ago

 Description   

Under the "Behaviour" section, the result for example "

{ $range: [ 0, 5 ] }

" is "[ 1, 2, 3, 4, 5]".

This is not consistent with the documentation which states "$range generates the sequence from the specified starting number by successively incrementing the starting number by the specified step value up to but not including the end point."

The correct value should be "[0, 1, 2, 3, 4]".



 Comments   
Comment by Jeffrey Allen [ 11/Sep/17 ]

This looks to already be taken care of. The

{ $range: [ 0, 5 ] }

example shows a result of [ 0, 1, 2, 3, 4 ].

I'll mark this as resolved and close.

https://docs.mongodb.com/manual/reference/operator/aggregation/range/

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