Skip to content

Commit 8e648cd

Browse files
(DOCS-15201): Add v5.2 language features to Stable API (#1138)
additions fix links add densify and locf
1 parent 917008e commit 8e648cd

File tree

2 files changed

+128
-0
lines changed

2 files changed

+128
-0
lines changed

source/reference/stable-api-changelog.txt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@ The following table describes:
150150
- Stable API Version
151151
- Added to Stable API in Version
152152

153+
* - :group:`$bottom`
154+
- V1
155+
- MongoDB 6.0
156+
157+
* - :group:`$bottomN`
158+
- V1
159+
- MongoDB 6.0
160+
153161
* - :expression:`$dateAdd`
154162
- V1
155163
- MongoDB 6.0
@@ -166,10 +174,50 @@ The following table describes:
166174
- V1
167175
- MongoDB 6.0
168176

177+
* - :pipeline:`$densify`
178+
- V1
179+
- MongoDB 6.0
180+
181+
* - :group:`$firstN` (aggregation accumulator)
182+
- V1
183+
- MongoDB 6.0
184+
185+
* - :expression:`$firstN` (array operator)
186+
- V1
187+
- MongoDB 6.0
188+
169189
* - :expression:`$getField`
170190
- V1
171191
- MongoDB 6.0
172192

193+
* - :group:`$lastN` (aggregation accumulator)
194+
- V1
195+
- MongoDB 6.0
196+
197+
* - :expression:`$lastN` (array operator)
198+
- V1
199+
- MongoDB 6.0
200+
201+
* - :group:`$locf`
202+
- V1
203+
- MongoDB 6.0
204+
205+
* - :group:`$maxN` (aggregation accumulator)
206+
- V1
207+
- MongoDB 6.0
208+
209+
* - :expression:`$maxN` (array operator)
210+
- V1
211+
- MongoDB 6.0
212+
213+
* - :group:`$minN` (aggregation accumulator)
214+
- V1
215+
- MongoDB 6.0
216+
217+
* - :expression:`$minN` (array operator)
218+
- V1
219+
- MongoDB 6.0
220+
173221
* - :expression:`$setField`
174222
- V1
175223
- MongoDB 6.0
@@ -178,6 +226,18 @@ The following table describes:
178226
- V1
179227
- MongoDB 6.0
180228

229+
* - :expression:`$sortArray`
230+
- V1
231+
- MongoDB 6.0
232+
233+
* - :group:`$top`
234+
- V1
235+
- MongoDB 6.0
236+
237+
* - :group:`$topN`
238+
- V1
239+
- MongoDB 6.0
240+
181241
* - :expression:`$tsIncrement`
182242
- V1
183243
- MongoDB 6.0

source/release-notes/6.0.txt

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,16 @@ are supported in the Stable API:
285285
- Description
286286
- Stable API Version
287287

288+
* - :group:`$bottom`
289+
- Returns the bottom element within a group according to the specified
290+
sort order.
291+
- V1
292+
293+
* - :group:`$bottomN`
294+
- Returns an aggregation of the bottom ``n`` elements within a group,
295+
according to the specified sort order.
296+
- V1
297+
288298
* - :expression:`$dateAdd`
289299
- Increments a :doc:`Date </reference/method/Date>` object by a
290300
specified number of time units.
@@ -303,10 +313,54 @@ are supported in the Stable API:
303313
- Truncates a date.
304314
- V1
305315

316+
* - :pipeline:`$densify`
317+
- .. include:: /includes/fact-densify-description.rst
318+
- V1
319+
320+
* - :group:`$firstN` (aggregation accumulator)
321+
- Returns an aggregation of the first ``n`` elements within a group.
322+
- V1
323+
324+
* - :expression:`$firstN` (array operator)
325+
- Returns a specified number of elements from the beginning of an
326+
array.
327+
- V1
328+
306329
* - :expression:`$getField`
307330
- Returns the value of a specified field from a document.
308331
- V1
309332

333+
* - :group:`$lastN` (aggregation accumulator)
334+
- Returns an aggregation of the last ``n`` elements within a group.
335+
- V1
336+
337+
* - :expression:`$lastN` (array operator)
338+
- Returns a specified number of elements from the end of an
339+
array.
340+
- V1
341+
342+
* - :group:`$locf`
343+
- .. include:: /includes/fact-locf-description.rst
344+
- V1
345+
346+
* - :group:`$maxN` (aggregation accumulator)
347+
- Returns an aggregation of the maximum value ``n`` elements within
348+
a group.
349+
- V1
350+
351+
* - :expression:`$maxN` (array operator)
352+
- Returns the ``n`` largest values in an array.
353+
- V1
354+
355+
* - :group:`$minN` (aggregation accumulator)
356+
- Returns an aggregation of the minimum value ``n`` elements within
357+
a group.
358+
- V1
359+
360+
* - :expression:`$minN` (array operator)
361+
- Returns the ``n`` smallest values in an array.
362+
- V1
363+
310364
* - :expression:`$setField`
311365
- Adds, updates, or removes a specified field in a document.
312366
- V1
@@ -318,6 +372,20 @@ are supported in the Stable API:
318372
<setWindowFields-window-operators>`.
319373
- V1
320374

375+
* - :expression:`$sortArray`
376+
- Sorts an array based on its elements.
377+
- V1
378+
379+
* - :group:`$top`
380+
- Returns the top element within a group according to the specified
381+
sort order.
382+
- V1
383+
384+
* - :group:`$topN`
385+
- Returns an aggregation of the top ``n`` elements within a group,
386+
according to the specified sort order.
387+
- V1
388+
321389
* - :expression:`$tsIncrement`
322390
- .. include:: /includes/tsIncrement-introduction.rst
323391
- V1

0 commit comments

Comments
 (0)