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

Incomplete definition of $arrayElemAt

    XMLWordPrintableJSON

Details

    Description

      Description

      The Definition for the aggregation pipeline operator $arrayElemAt is incomplete. It explains how <idx> is handled if it is positive and how it is handled if it is negative. It does not explain how zero is handled. The first bullet point should read "If zero or positive, ..."

      This is ultimately a minor omission, since the Behavior section includes an example where idx is 0.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            matthew.chiaravalloti@mongodb.com Matthew Chiaravalloti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 14 weeks ago