Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1621

aggregation: Should have a $range operator to generate a sequence.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: Linq
    • Labels:
      None
    • Sprint:
      C# Sprint 41

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              craiggwilson Craig Wilson
              Reporter:
              rathi.gnanasekaran Rathi Gnanasekaran
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: