[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/ |
||
| 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/ |