Skip to content

Commit 3d9ca73

Browse files
authored
DOCSP-25351 eol version cleanup aggregation v4.2 (#1926)
* DOCSP-25351 Merges * DOCSP-25351 Fixes build issue
1 parent 261b37f commit 3d9ca73

24 files changed

+29
-122
lines changed

source/reference/operator/aggregation/convert.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Definition
2020

2121
.. expression:: $convert
2222

23-
.. versionadded:: 4.0
24-
2523
Converts a value to a specified type.
2624

2725
:expression:`$convert` has the following syntax:

source/reference/operator/aggregation/currentOp.txt

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ Syntax
144144

145145
Defaults to ``true``.
146146

147-
.. versionadded:: 4.0
148-
149147
* - :ref:`localOps <currentOp-stage-localOps>`
150148

151149
- .. _currentOp-stage-localOps:
@@ -163,8 +161,6 @@ Syntax
163161

164162
Defaults to ``false``.
165163

166-
.. versionadded:: 4.0
167-
168164
* - :ref:`backtrace <currentOp-stage-backtrace>`
169165

170166
- .. _currentOp-stage-backtrace:
@@ -201,7 +197,6 @@ Pipeline
201197

202198
- :pipeline:`$currentOp` must be the first stage in the pipeline.
203199

204-
205200
- Pipelines that start with :pipeline:`$currentOp` can only be run on
206201
the ``admin`` database.
207202

@@ -983,17 +978,13 @@ relevant for the operation:
983978
Only present if the operation is part of a multi-document
984979
transaction.
985980

986-
.. versionadded:: 4.0
987-
988981
.. data:: $currentOp.transaction.parameters.txnNumber
989982

990983
The transaction number.
991984

992985
Only present if the operation is part of a multi-document
993986
transaction.
994987

995-
.. versionadded:: 4.0
996-
997988
.. data:: $currentOp.transaction.parameters.autocommit
998989

999990
A boolean flag that indicates if autocommit is on for the
@@ -1002,8 +993,6 @@ relevant for the operation:
1002993
Only present if the operation is part of a multi-document
1003994
transaction.
1004995

1005-
.. versionadded:: 4.0.2
1006-
1007996
.. data:: $currentOp.transaction.parameters.readConcern
1008997

1009998
The :ref:`read concern <transactions-read-concern>` for the
@@ -1016,8 +1005,6 @@ relevant for the operation:
10161005
Only present if the operation is part of a multi-document
10171006
transaction.
10181007

1019-
.. versionadded:: 4.0.2
1020-
10211008
.. data:: $currentOp.transaction.globalReadTimestamp
10221009

10231010
The timestamp of the snapshot read by the operations in the
@@ -1051,17 +1038,13 @@ relevant for the operation:
10511038
Instead, :data:`$currentOp.transaction.globalReadTimestamp` is
10521039
returned.
10531040

1054-
.. versionadded:: 4.0.2
1055-
10561041
.. data:: $currentOp.transaction.startWallClockTime
10571042

10581043
The date and time (with time zone) of the transaction start.
10591044

10601045
Only present if the operation is part of a multi-document
10611046
transaction.
10621047

1063-
.. versionadded:: 4.0.2
1064-
10651048
.. data:: $currentOp.transaction.timeOpenMicros
10661049

10671050
The duration, in microseconds, for the transaction.
@@ -1075,8 +1058,6 @@ relevant for the operation:
10751058
Only present if the operation is part of a multi-document
10761059
transaction.
10771060

1078-
.. versionadded:: 4.0.2
1079-
10801061
.. data:: $currentOp.transaction.timeActiveMicros
10811062

10821063
The total amount of time that the transaction has been active;
@@ -1092,8 +1073,6 @@ relevant for the operation:
10921073
Only present if the operation is part of a multi-document
10931074
transaction.
10941075

1095-
.. versionadded:: 4.0.2
1096-
10971076
.. data:: $currentOp.transaction.timeInactiveMicros
10981077

10991078
The total amount of time that the transaction has been
@@ -1179,8 +1158,6 @@ relevant for the operation:
11791158
Only present if the operation is part of a multi-document
11801159
transaction.
11811160

1182-
.. versionadded:: 4.0.2
1183-
11841161

11851162
.. data:: $currentOp.op
11861163

source/reference/operator/aggregation/dateFromParts.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ Definition
186186
:ref:`aggregation-expressions`.
187187

188188
.. |outofrange| replace::
189-
Starting in MongoDB 4.0, if the number specified is outside this
190-
range, :expression:`$dateFromParts` incorporates the difference in
191-
the date calculation. See :ref:`dateFromParts-values` for examples.
189+
If the number specified is outside this range, :expression:`$dateFromParts`
190+
incorporates the difference in the date calculation.
191+
See :ref:`dateFromParts-values` for examples.
192192

193193
Behavior
194194
--------
@@ -198,10 +198,10 @@ Behavior
198198
Value Range
199199
~~~~~~~~~~~
200200

201-
Starting in MongoDB 4.0, if the value specified for fields other than
202-
``year``, ``isoYear``, and ``timezone`` is outside the valid range,
203-
:expression:`$dateFromParts` carries or subtracts the difference from
204-
other date parts to calculate the date.
201+
If the value specified for fields other than ``year``, ``isoWeekYear``,
202+
and ``timezone`` is outside the valid range, :expression:`$dateFromParts`
203+
carries or subtracts the difference from other date parts to calculate
204+
the date.
205205

206206
Value is Greater than the Range
207207
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

source/reference/operator/aggregation/dateFromString.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ Definition
6363
If unspecified, :expression:`$dateFromString` uses
6464
``"%Y-%m-%dT%H:%M:%S.%LZ"`` as the default format.
6565

66-
.. versionadded:: 4.0
67-
6866
* - ``timezone``
6967

7068
- Optional. The time zone to use to format the date.

source/reference/operator/aggregation/dateToString.txt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ Definition
5858
If unspecified, :expression:`$dateToString` uses
5959
``"%Y-%m-%dT%H:%M:%S.%LZ"`` as the default format.
6060

61-
.. versionchanged:: 4.0
62-
63-
The ``format`` field is optional if
64-
``featureCompatibilityVersion`` (fCV) is set to ``"4.0"`` or
65-
greater. For more information on fCV, see
66-
:dbcommand:`setFeatureCompatibilityVersion`.
67-
6861
* - ``timezone``
6962

7063
- .. include:: /includes/fact-timezone-description.rst
@@ -80,13 +73,10 @@ Definition
8073
If unspecified, :expression:`$dateToString` returns null if the
8174
``date`` is null or missing.
8275

83-
.. versionadded:: 4.0
84-
85-
Requires ``featureCompatibilityVersion`` (fCV) set to
86-
``"4.0"`` or greater. For more information on fCV, see
87-
:dbcommand:`setFeatureCompatibilityVersion`.
76+
.. seealso::
8877

89-
.. seealso:: :expression:`$toString` and :expression:`$convert`
78+
- :expression:`$toString`
79+
- :expression:`$convert`
9080

9181
.. _format-specifiers:
9282

source/reference/operator/aggregation/geoNear.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ Definition
9292
``2d`` index and/or only one ``2dsphere`` index, MongoDB looks first
9393
for a ``2d`` index to use. If a ``2d`` index does not exists, then
9494
MongoDB looks for a ``2dsphere`` index to use.
95-
96-
.. versionadded:: 4.0
9795

9896
* - ``maxDistance``
9997

@@ -277,8 +275,6 @@ The following aggregation finds all documents that
277275
Specify Which Geospatial Index to Use
278276
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
279277

280-
.. versionadded:: 4.0
281-
282278
Consider a ``places`` collection that has a :doc:`2dsphere
283279
</core/2dsphere>` index on the ``location`` field and a
284280
:doc:`2d </core/2d>` index on the ``legacy`` field.

source/reference/operator/aggregation/lookup.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ See the following examples:
119119
Join Conditions and Uncorrelated Sub-queries
120120
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
121121

122-
.. versionadded:: 3.6
123-
124122
To perform uncorrelated subqueries between two collections as well as
125123
allow other join conditions besides a single equality match, the
126124
:pipeline:`$lookup` stage has the following syntax:
@@ -526,14 +524,14 @@ The operation returns the following documents:
526524
Specify Multiple Join Conditions with ``$lookup``
527525
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
528526

529-
.. versionchanged:: 3.6
530-
531-
MongoDB 3.6 adds support for executing a pipeline on the joined
532-
collection, which allows for specifying multiple join conditions as
533-
well as uncorrelated sub-queries.
527+
Pipelines can execute on a joined collection and include multiple join
528+
conditions.
534529

535530
Create a collection ``orders`` with the following documents:
536531

532+
533+
Create a collection ``orders`` with these documents:
534+
537535
.. cssclass:: copyable-code
538536

539537
.. code-block:: javascript

source/reference/operator/aggregation/ltrim.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Definition
1515

1616
.. expression:: $ltrim
1717

18-
.. versionadded:: 4.0
19-
2018
Removes whitespace characters, including null, or the specified
2119
characters from the beginning of a string.
2220

source/reference/operator/aggregation/merge.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ Definition
2929

3030
.. pipeline:: $merge
3131

32-
.. versionadded:: 4.2
33-
3432
Writes the results of the :doc:`aggregation pipeline
3533
</core/aggregation-pipeline>` to a specified collection. The
3634
:pipeline:`$merge` operator must be the **last** stage in the
@@ -676,9 +674,6 @@ Comparison with ``$out``
676674
* - :pipeline:`$merge`
677675
- :pipeline:`$out`
678676

679-
* - - Available starting in MongoDB 4.2
680-
- - Available starting in MongoDB 2.6
681-
682677
* - - Can output to a collection in the same or different database.
683678
- - Can output to a collection in the same database only.
684679

source/reference/operator/aggregation/out.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ following summarizes the capabilities of the two stages:
5858

5959
* - :pipeline:`$out`
6060
- :pipeline:`$merge`
61-
* - - Available starting in MongoDB 2.6
62-
- - Available starting in MongoDB 4.2
6361
* - - Can output to a collection in the same or, starting in
6462
MongoDB 4.4, different database.
6563
- - Can output to a collection in the same or different database.

0 commit comments

Comments
 (0)