[CSHARP-1621] aggregation: Should have a $range operator to generate a sequence. Created: 06/Apr/16  Updated: 27/May/22  Resolved: 23/Aug/16

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: None
Fix Version/s: 2.4

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-20169 aggregation: Should have a $range ope... Closed
is depended on by DRIVERS-297 Aggregation Framework Support for 3.4 Closed
Epic Link: MongoDB 3.4
Server Compat: 3.3

 Description   

Syntax

{$range: [<start>, <end>, <step>]}

Example

Input

{_id: 0}

Pipeline

db.coll.aggregate([{
    $project: {
        x: {$range: [0, 6, 2]}
    }
}])

Output

{_id: 0, x: [0, 2, 4]}

Additional Notes



 Comments   
Comment by Githook User [ 29/Sep/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1621: added support for $range.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/83ec087978e706429079cc11e7b181449485fd3c

Comment by Githook User [ 24/Sep/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1621: added support for $range.
Branch: v2.4.x
https://github.com/mongodb/mongo-csharp-driver/commit/83ec087978e706429079cc11e7b181449485fd3c

Comment by Githook User [ 21/Sep/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1621: added support for $range.
Branch: v2.4.x
https://github.com/mongodb/mongo-csharp-driver/commit/de54c9cde67667412664f9756a41a283a384ba57

Comment by Githook User [ 16/Sep/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1621: added support for $range.
Branch: v2.4.x
https://github.com/mongodb/mongo-csharp-driver/commit/0a9eac7bf6e99a5182c3a1dc1731de9a5088d2d9

Comment by Githook User [ 31/Aug/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1621: added support for $range.
Branch: v2.4.x
https://github.com/mongodb/mongo-csharp-driver/commit/1d67a643dce66d777a619029fce49eab1434938e

Comment by Githook User [ 29/Aug/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1621: added support for $range.
Branch: v2.4.x
https://github.com/mongodb/mongo-csharp-driver/commit/a1f1e6d9c955d3c84bd7242e98106f634767b4fb

Comment by Githook User [ 23/Aug/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1621: added support for $range.
Branch: v2.4.x
https://github.com/mongodb/mongo-csharp-driver/commit/783d70231d4674829644eb436e4b10b1a90881ed

Generated at Wed Feb 07 21:40:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.