Skip to content

Commit 0058a58

Browse files
authored
1 parent 7b8960a commit 0058a58

24 files changed

+26
-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

@@ -985,17 +980,13 @@ relevant for the operation:
985980
Only present if the operation is part of a multi-document
986981
transaction.
987982

988-
.. versionadded:: 4.0
989-
990983
.. data:: $currentOp.transaction.parameters.txnNumber
991984

992985
The transaction number.
993986

994987
Only present if the operation is part of a multi-document
995988
transaction.
996989

997-
.. versionadded:: 4.0
998-
999990
.. data:: $currentOp.transaction.parameters.autocommit
1000991

1001992
A boolean flag that indicates if autocommit is on for the
@@ -1004,8 +995,6 @@ relevant for the operation:
1004995
Only present if the operation is part of a multi-document
1005996
transaction.
1006997

1007-
.. versionadded:: 4.0.2
1008-
1009998
.. data:: $currentOp.transaction.parameters.readConcern
1010999

10111000
The :ref:`read concern <transactions-read-concern>` for the
@@ -1018,8 +1007,6 @@ relevant for the operation:
10181007
Only present if the operation is part of a multi-document
10191008
transaction.
10201009

1021-
.. versionadded:: 4.0.2
1022-
10231010
.. data:: $currentOp.transaction.globalReadTimestamp
10241011

10251012
The timestamp of the snapshot read by the operations in the
@@ -1053,17 +1040,13 @@ relevant for the operation:
10531040
Instead, :data:`$currentOp.transaction.globalReadTimestamp` is
10541041
returned.
10551042

1056-
.. versionadded:: 4.0.2
1057-
10581043
.. data:: $currentOp.transaction.startWallClockTime
10591044

10601045
The date and time (with time zone) of the transaction start.
10611046

10621047
Only present if the operation is part of a multi-document
10631048
transaction.
10641049

1065-
.. versionadded:: 4.0.2
1066-
10671050
.. data:: $currentOp.transaction.timeOpenMicros
10681051

10691052
The duration, in microseconds, for the transaction.
@@ -1077,8 +1060,6 @@ relevant for the operation:
10771060
Only present if the operation is part of a multi-document
10781061
transaction.
10791062

1080-
.. versionadded:: 4.0.2
1081-
10821063
.. data:: $currentOp.transaction.timeActiveMicros
10831064

10841065
The total amount of time that the transaction has been active;
@@ -1094,8 +1075,6 @@ relevant for the operation:
10941075
Only present if the operation is part of a multi-document
10951076
transaction.
10961077

1097-
.. versionadded:: 4.0.2
1098-
10991078
.. data:: $currentOp.transaction.timeInactiveMicros
11001079

11011080
The total amount of time that the transaction has been
@@ -1181,8 +1160,6 @@ relevant for the operation:
11811160
Only present if the operation is part of a multi-document
11821161
transaction.
11831162

1184-
.. versionadded:: 4.0.2
1185-
11861163

11871164
.. data:: $currentOp.op
11881165

source/reference/operator/aggregation/dateFromParts.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ Definition
190190
:ref:`aggregation-expressions`.
191191

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

197197
.. |outofrange-4.4| replace::
198198
If the number specified is outside this range,
@@ -213,10 +213,10 @@ Starting in MongoDB 4.4, the supported value range for ``year`` and
213213
bound for these values was ``0`` and the supported value range was
214214
``0-9999``.
215215

216-
Starting in MongoDB 4.0, if the value specified for fields other than
217-
``year``, ``isoWeekYear``, and ``timezone`` is outside the valid range,
218-
:expression:`$dateFromParts` carries or subtracts the difference from
219-
other date parts to calculate the date.
216+
If the value specified for fields other than ``year``, ``isoWeekYear``,
217+
and ``timezone`` is outside the valid range, :expression:`$dateFromParts`
218+
carries or subtracts the difference from other date parts to calculate
219+
the date.
220220

221221
Value is Greater than the Range
222222
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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: 0 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,12 +73,6 @@ 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`.
88-
8976
.. seealso::
9077

9178
- :expression:`$toString`

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

@@ -280,8 +278,6 @@ equal to ``Parks``.
280278
Specify Which Geospatial Index to Use
281279
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
282280

283-
.. versionadded:: 4.0
284-
285281
Consider a ``places`` collection that has a :doc:`2dsphere
286282
</core/2dsphere>` index on the ``location`` field and a
287283
:doc:`2d </core/2d>` index on the ``legacy`` field.

source/reference/operator/aggregation/lookup.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ See these examples:
121121
Join Conditions and Subqueries on a Joined Collection
122122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123123

124-
.. versionadded:: 3.6
125-
126-
MongoDB 3.6 adds support for:
124+
MongoDB supports:
127125

128126
- Executing a pipeline on a joined collection.
129127

@@ -681,17 +679,15 @@ The operation returns these documents:
681679
Perform Multiple Joins and a Correlated Subquery with ``$lookup``
682680
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
683681

684-
.. versionchanged:: 3.6
685-
686-
MongoDB 3.6 adds support for executing a pipeline on a joined collection
687-
and allows multiple join conditions.
682+
Pipelines can execute on a joined collection and include multiple join
683+
conditions.
688684

689685
A join condition can reference a field in the local collection on which
690686
the :method:`~db.collection.aggregate()` method was run and reference a
691687
field in the joined collection. This allows a correlated subquery
692688
between the two collections.
693689

694-
MongoDB 5.0 also supports :ref:`concise correlated subqueries
690+
MongoDB 5.0 supports :ref:`concise correlated subqueries
695691
<lookup-concise-correlated-subquery>`.
696692

697693
Create a collection ``orders`` with these documents:

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
@@ -28,8 +28,6 @@ Definition
2828

2929
.. pipeline:: $merge
3030

31-
.. versionadded:: 4.2
32-
3331
Writes the results of the :doc:`aggregation pipeline
3432
</core/aggregation-pipeline>` to a specified collection. The
3533
:pipeline:`$merge` operator must be the **last** stage in the
@@ -690,9 +688,6 @@ results of the aggregation pipeline to a collection:
690688
* - :pipeline:`$merge`
691689
- :pipeline:`$out`
692690

693-
* - - Available starting in MongoDB 4.2
694-
- - Available starting in MongoDB 2.6
695-
696691
* - - Can output to a collection in the same or different database.
697692
- - Can output to a collection in the same or, starting in
698693
MongoDB 4.4, different database.

source/reference/operator/aggregation/out.txt

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

9797
* - :pipeline:`$out`
9898
- :pipeline:`$merge`
99-
* - - Available starting in MongoDB 2.6
100-
- - Available starting in MongoDB 4.2
10199
* - - Can output to a collection in the same or, starting in
102100
MongoDB 4.4, different database.
103101
- - Can output to a collection in the same or different database.

source/reference/operator/aggregation/planCacheStats.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ document similar to the following:
131131
...
132132
],
133133
"indexFilterSet" : <boolean>,
134-
"estimatedSizeBytes" : <num>, // Available starting in MongoDB 5.0, 4.4.3, 4.2.12, 4.0.23, 3.6.23
134+
"estimatedSizeBytes" : <num>, // Available starting in MongoDB 5.0, 4.4.3, 4.2.12
135135
"host" : <string>, // Available starting in MongoDB 4.4
136136
"shard" : <string> // Available starting in MongoDB 4.4 if run on sharded cluster
137137
}
@@ -237,8 +237,9 @@ including:
237237
- A number that describes the estimated size in bytes of a plan
238238
cache entry.
239239

240-
.. versionadded:: 5.0 (*Also available starting in 4.4.3, 4.2.12,
241-
4.0.23, and 3.6.23*)
240+
.. versionadded:: 5.0
241+
242+
Starting in MongoDB 5.0, 4.4.3, and 4.2.12, this field is available.
242243

243244
* - :ref:`host <plancachestats-host>`
244245

@@ -352,7 +353,7 @@ The operation returns all entries in the cache:
352353
1.5002
353354
],
354355
"indexFilterSet" : false,
355-
"estimatedSizeBytes" : NumberLong(3160), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12, 4.0.23, 3.6.23
356+
"estimatedSizeBytes" : NumberLong(3160), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12
356357
"host" : "mongodb1.example.net:27018", // Available starting in MongoDB 4.4
357358
"shard" : "shardA" // Available starting in MongoDB 4.4 if run on sharded cluster
358359
}
@@ -383,7 +384,7 @@ The operation returns all entries in the cache:
383384
1.0002
384385
],
385386
"indexFilterSet" : false,
386-
"estimatedSizeBytes" : NumberLong(2539), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12, 4.0.23, 3.6.23
387+
"estimatedSizeBytes" : NumberLong(2539), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12
387388
"host" : "mongodb1.example.net:27018", // Available starting in MongoDB 4.4
388389
"shard" : "shardA" // Available starting in MongoDB 4.4 if run on sharded cluster
389390
}
@@ -414,7 +415,7 @@ The operation returns all entries in the cache:
414415
1.7502
415416
],
416417
"indexFilterSet" : false,
417-
"estimatedSizeBytes" : NumberLong(3183), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12, 4.0.23, 3.6.23
418+
"estimatedSizeBytes" : NumberLong(3183), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12
418419
"host" : "mongodb1.example.net:27018", // Available starting in MongoDB 4.4
419420
"shard" : "shardA" // Available starting in MongoDB 4.4 if run on sharded cluster
420421
}
@@ -449,7 +450,7 @@ The operation returns all entries in the cache:
449450
1.6668666666666665
450451
],
451452
"indexFilterSet" : false,
452-
"estimatedSizeBytes" : NumberLong(4653), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12, 4.0.23, 3.6.23
453+
"estimatedSizeBytes" : NumberLong(4653), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12
453454
"host" : "mongodb1.example.net:27018", // Available starting in MongoDB 4.4
454455
"shard" : "shardA" // Available starting in MongoDB 4.4 if run on sharded cluster
455456
}
@@ -677,7 +678,7 @@ The operation returns the following:
677678
1.5002
678679
],
679680
"indexFilterSet" : false,
680-
"estimatedSizeBytes" : NumberLong(3160), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12, 4.0.23, 3.6.23
681+
"estimatedSizeBytes" : NumberLong(3160), // Available starting in MongoDB 5.0, 4.4.3, 4.2.12
681682
"host" : "mongodb1.example.net:27018", // Available starting in MongoDB 4.4
682683
"shard" : "shardA" // Available starting in MongoDB 4.4 if run on sharded cluster
683684
}

source/reference/operator/aggregation/round.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Definition
1515

1616
.. expression:: $round
1717

18-
.. versionadded:: 4.2.
18+
.. versionadded:: 4.2
1919

2020
:expression:`$round` rounds a number to a whole integer *or* to a
2121
specified decimal place.

source/reference/operator/aggregation/rtrim.txt

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

1616
.. expression:: $rtrim
1717

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

source/reference/operator/aggregation/sample.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,6 @@ If any of the previous conditions are false, :pipeline:`$sample`:
4949
Random sorts are subject to the :ref:`sort memory restrictions
5050
<sort-memory-limit>`.
5151

52-
MMAPv1 May Return Duplicate Documents
53-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54-
55-
If you are using the:
56-
57-
- MMAPv1 storage engine, :pipeline:`$sample` may return the same
58-
document more than once in the result set.
59-
60-
- :ref:`WiredTiger <storage-wiredtiger>` or
61-
:ref:`in-memory <storage-inmemory>` storage engine,
62-
:pipeline:`$sample` does not return duplicate documents. WiredTiger
63-
is the default storage engine as of MongoDB 3.2.
64-
6552
Example
6653
--------
6754

source/reference/operator/aggregation/toBool.txt

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

2222
.. expression:: $toBool
2323

24-
.. versionadded:: 4.0
25-
2624
Converts a value to a boolean.
2725

2826
:expression:`$toBool` has the following syntax:

source/reference/operator/aggregation/toDate.txt

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

2020
.. expression:: $toDate
2121

22-
.. versionadded:: 4.0
23-
2422
Converts a value to a date. If the value cannot be converted
2523
to a date, :expression:`$toDate` errors. If the value is null or
2624
missing, :expression:`$toDate` returns null.

source/reference/operator/aggregation/toDecimal.txt

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

2121
.. expression:: $toDecimal
2222

23-
.. versionadded:: 4.0
24-
2523
Converts a value to a decimal. If the value cannot be converted
2624
to a decimal, :expression:`$toDecimal` errors. If the value is null or
2725
missing, :expression:`$toDecimal` returns null.

0 commit comments

Comments
 (0)