[DOCS-13966] Incomplete definition of $arrayElemAt Created: 02/Nov/20  Updated: 30/Oct/23  Due: 06/Nov/20  Resolved: 04/Nov/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Matthew Chiaravalloti Assignee: Andrew Feierabend (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 3 years, 14 weeks ago
Epic Link: DOCSP-11701
Story Points: 2

 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.)



 Comments   
Comment by Githook User [ 04/Nov/20 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-13966 clarify behavior of zero for $arrayElemAt idx
Branch: v3.6
https://github.com/mongodb/docs/commit/78d2b1ceb45a6cc087b894eb852b1d6573c3e51d

Comment by Githook User [ 04/Nov/20 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-13966 clarify behavior of zero for $arrayElemAt idx
Branch: v4.0
https://github.com/mongodb/docs/commit/f1752b55cd6dbe8c457ab6a9fb6404f327975165

Comment by Githook User [ 04/Nov/20 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-13966 clarify behavior of zero for $arrayElemAt idx
Branch: v4.2
https://github.com/mongodb/docs/commit/e382d80bb982294481c0505ee350d6a5481fb94c

Comment by Githook User [ 04/Nov/20 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-13966 clarify behavior of zero for $arrayElemAt idx
Branch: master
https://github.com/mongodb/docs/commit/de37fceea4da14398b26a9f487df0d7fd28fcc0e

Generated at Thu Feb 08 08:09:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.