Skip to content

Commit 917008e

Browse files
(DOCS-15193): Add v5.0 language features to Stable API (#1127)
* (DOCS-15193): Add v5.0 language features to Stable API * add clarifying text * remove extra text * update release notes * fix release notes table * updates per review * change header wording * change header wording
1 parent 06f84a8 commit 917008e

File tree

2 files changed

+128
-9
lines changed

2 files changed

+128
-9
lines changed

source/reference/stable-api-changelog.txt

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ This page contains a changelog of the Stable API. The Stable API is
1616
actively being expanded to include new database commands and
1717
functionality.
1818

19-
The database commands included in the Stable API depend on the MongoDB
20-
version you are using. This page describes the MongoDB and Stable API
21-
versions when a database command or specific sub-features of a command
22-
are available.
19+
The commands and operators included in the Stable API depend on the
20+
MongoDB version you are using. This page describes the MongoDB and
21+
Stable API versions when a database command or specific sub-features of
22+
a command are available.
2323

2424
Database Commands
2525
-----------------
@@ -37,7 +37,7 @@ The following table describes:
3737

3838
* - Command
3939
- Stable API Version
40-
- Added to Stable API in MongoDB Version
40+
- Added to Stable API in Version
4141

4242
* - :dbcommand:`count`
4343
- V1
@@ -129,3 +129,59 @@ The following table describes:
129129
MongoDB does not guarantee that the output of the
130130
:dbcommand:`explain` command will conform to the same format in
131131
future API versions.
132+
133+
Aggregation Stages and Operators
134+
--------------------------------
135+
136+
The following table describes:
137+
138+
- The aggregation stages and operators included in each version of the
139+
Stable API.
140+
141+
- The MongoDB version in which the stage or operator was added to the
142+
Stable API.
143+
144+
.. list-table::
145+
:header-rows: 1
146+
:stub-columns: 1
147+
:widths: 15 5 10
148+
149+
* - Stage or Operator
150+
- Stable API Version
151+
- Added to Stable API in Version
152+
153+
* - :expression:`$dateAdd`
154+
- V1
155+
- MongoDB 6.0
156+
157+
* - :expression:`$dateDiff`
158+
- V1
159+
- MongoDB 6.0
160+
161+
* - :expression:`$dateSubtract`
162+
- V1
163+
- MongoDB 6.0
164+
165+
* - :expression:`$dateTrunc`
166+
- V1
167+
- MongoDB 6.0
168+
169+
* - :expression:`$getField`
170+
- V1
171+
- MongoDB 6.0
172+
173+
* - :expression:`$setField`
174+
- V1
175+
- MongoDB 6.0
176+
177+
* - :pipeline:`$setWindowFields`
178+
- V1
179+
- MongoDB 6.0
180+
181+
* - :expression:`$tsIncrement`
182+
- V1
183+
- MongoDB 6.0
184+
185+
* - :expression:`$tsSecond`
186+
- V1
187+
- MongoDB 6.0

source/release-notes/6.0.txt

Lines changed: 67 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,17 @@ no longer required to shard a collection.
244244
Stable API
245245
----------
246246

247-
Starting in MongoDB 6.0, the following database commands are included in
248-
the :ref:`Stable API <stable-api>`:
247+
The following sections describe additions to the :ref:`Stable API
248+
<stable-api>` introduced in MongoDB 6.0.
249+
250+
To see the full list of database commands available in the Stable API,
251+
see :ref:`stable-api-changelog`.
252+
253+
Database Commands
254+
~~~~~~~~~~~~~~~~~
255+
256+
Starting in MongoDB 6.0, the following database commands are supported
257+
in the Stable API:
249258

250259
.. list-table::
251260
:header-rows: 1
@@ -261,8 +270,62 @@ the :ref:`Stable API <stable-api>`:
261270
in MongoDB 5.0.9.)
262271
- V1
263272

264-
To see the full list of database commands available in the Stable API,
265-
see :ref:`stable-api-changelog`.
273+
Aggregation Stages and Operators
274+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
275+
276+
Starting in MongoDB 6.0, the following aggregation stages and operators
277+
are supported in the Stable API:
278+
279+
.. list-table::
280+
:header-rows: 1
281+
:stub-columns: 1
282+
:widths: 10 20 10
283+
284+
* - Stage or Operator
285+
- Description
286+
- Stable API Version
287+
288+
* - :expression:`$dateAdd`
289+
- Increments a :doc:`Date </reference/method/Date>` object by a
290+
specified number of time units.
291+
- V1
292+
293+
* - :expression:`$dateDiff`
294+
- Returns the difference between two dates.
295+
- V1
296+
297+
* - :expression:`$dateSubtract`
298+
- Decrements a :doc:`Date </reference/method/Date>` object by a
299+
specified number of time units.
300+
- V1
301+
302+
* - :expression:`$dateTrunc`
303+
- Truncates a date.
304+
- V1
305+
306+
* - :expression:`$getField`
307+
- Returns the value of a specified field from a document.
308+
- V1
309+
310+
* - :expression:`$setField`
311+
- Adds, updates, or removes a specified field in a document.
312+
- V1
313+
314+
* - :pipeline:`$setWindowFields`
315+
- Performs operations on a specified span of documents in a
316+
collection, known as a *window*, and returns the results based on
317+
the chosen :ref:`window operator
318+
<setWindowFields-window-operators>`.
319+
- V1
320+
321+
* - :expression:`$tsIncrement`
322+
- .. include:: /includes/tsIncrement-introduction.rst
323+
- V1
324+
325+
* - :expression:`$tsSecond`
326+
- .. include:: /includes/tsSecond-introduction.rst
327+
- V1
328+
266329

267330
Time Series Collections
268331
-----------------------

0 commit comments

Comments
 (0)