[DOCS-13181] Investigate changes in SERVER-44327: Add $first and $last expressions Created: 30/Oct/19  Updated: 13/Nov/23  Resolved: 21/Jan/20

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

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-44327 Add $first and $last expressions Closed
Related
Participants:
Days since reply: 4 years, 3 weeks, 1 day ago
Epic Link: DOCS: 4.4 Server Release Work

 Description   

Description

Downstream Change Summary

Adds the $first and $last expressions.

Description of Linked Ticket

The query team has decided on the following semantics and syntax:

Name: $first/last

Evaluates to the value at the first (or last) position in the passed in array. Errors if the passed in value is not an array and not nullish. Evaluates to missing if the array is empty, which is consistent with $arrayElemAt's behavior. Evaluates to null if input is nullish.

Syntax:

{ $first: <Expression> }

Scope of changes

Impact to Other Docs

MVP (Work and Date)

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



 Comments   
Comment by Githook User [ 21/Jan/20 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'Kay Kim', 'username': 'kay-kim'}

Message: DOCS-13181: fix spelling of accumulator
Branch: master
https://github.com/mongodb/docs/commit/3bb7fafaed782369e757a63bc5e2980f5cba0ee3

Comment by Githook User [ 21/Jan/20 ]

Author:

{'username': 'kay-kim', 'name': 'Kay Kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13181: 4.4 $first and $last agg array operators
Branch: master
https://github.com/mongodb/docs/commit/6f62bcf1a6d75b4b7b3265f63d3391a9435d3aff

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