Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9869

Comment on: "manual/reference/operator/aggregation/range.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • None
    • None
    • None

    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]".

      Attachments

        Activity

          People

            jeffrey.allen@mongodb.com Jeffrey Allen
            kofrasa@gmail.com Francis Asante
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 22 weeks, 2 days ago