Skip to content

Commit 888fad6

Browse files
kennethdyerjmd-mongoDave Cuthbertbiniona-mongodbjordan-smith721
authored
DOCSP-25224 EOL Version Cleanup of mongosh Methods (#1901)
* DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 version cleanup in Method Reference * DOCSP-25224 redirects * DOCSP-25224 Updates redirects, removes copyDatabase and cloneDatabase as deprecated * DOCSP-25224 Update for build * DOCSP-25224 Update for build * DOCSP-25224 Fixes build errors * DOCSP-25224 Fixes per Jocelyn * DOCSP-25224 Fixes per Jocelyn * DOCSP-25224 Fixes per Jocelyn * DOCSP-25224 Fixes per Jocelyn * DOCSP-25224 Fixes per Jocelyn * DOCS-15377 Fixes per Jocelyn * DOCSP-25890 adds page-level refs to pages under tutorial/ that have doc directives pointing to them (#2063) * DOCS-15521 sh.status.partitioned not valid (#2050) * DOCS-15521 sh.status.partitioned not valid * DOCS-15521 sh.status.partitioned not valid * DOCS-15521 sh.status.partitioned not valid * Review Feedback * Review feedback * DOCSP-25339 (#2026) * add api docs for rewrapmanydatakeys methods * move to shared include * broken links * update product names, add as constants * (DOCSP-24983) QE Server Side Schema Behavior (#2018) * wip * Trigger Build * proofread, spell-check, grammar-check * js - suggestion Co-authored-by: Jordan Smith <[email protected]> Co-authored-by: Jordan Smith <[email protected]> * (DOCSP-24820) libmongocrypt install fix (#2071) * libmongocryptdev * update qe libmongocrypt page * proofread * (DOCS-15399): 6.1 retryable writes errors (#2066) * (DOCS-15399): 6.1 retryable writes errors * wording * wording and minimalism * fix include name * edits * add clarity * reorder phrases * minimalism * minimalism, formatting * review edits * updates per review * wording * final review edits * minimalism * DOCS-15473 Update exit codes reference (#2070) * DOCSP-26150 Replace :doc: with :method: / :command: where possible (#2074) * Date() * internal review feedback * internal review feedback * internal review * DOCS-15411 commit quorum v write concern (#2009) * DOCS-15411 commitQuorum-and-writeConcerns * DOCS-15411 commitQuorum-and-writeConcerns * Staging fixes * Staging fixes * Review feedback * Staging fixes * Review Feedback * Review Feedback * Review feedback * Review feedback * Staging fixes * Review feedback * Review feedback * Commit feedback * DOCSP-25986 improve style of limitations page (#2047) * DOCSP-25986 timeseries limitations restyling * DOCSP-25986 timeseries limitations restyling * Review Feedback * Staging fixes * Merge feedback * (DOCSP-24856) (#2083) * update qe tut * update qe tuts * update csfle tuts * remove output from tuts that do not produce this output * remove output from code block that does not produce output * add deleted back in * DOCSP-26183 replaces :doc: with improved admonitions (#2080) * DOCSP-26204 update instances of :doc: pointing to core/index-text with :ref: (#2087) * DOCSP-26204 update instances of :doc: pointing to core/index-text with :ref: * internal review feedback * DOCSP-15109 Resume Token Expansion (#2049) * DOCSP-15109 Updates _id token * DOCSP-15109 Updates token sources * DOCSP-15109 Updates token sources * DOCSP-15109 Refactors resume token text * DOCSP-15109 Refactors resume token text * DOCSP-15109 Fixes code block * DOCSP-15109 Fixes code block * DOCSP-15109 Fixes per Dave * DOCSP-15109 Fixes per Dave * DOCSP-15109 Fixes per Dave * DOCSP-15109 Fixes per Dave * DOCSP-15109 Fixes build error * DOCSP-15109 Fixes build error * DOCSP-15109 Fixes build error * DOCSP-15109 Fixes per Valentin * (DOCS-15063): Change to balancerCollectionStatus output (#2085) * (DOCS-15063): Update balancerCollectionStatus command page * more updates * edits * small edits * tweak * wording * add details per tech review * formatting - note * DOCSP-26224 replace docs directives pointing to transactions (#2090) * DOCSP-26224 replace docs directives pointing to transactions * internal review feedback * DOCSP-26193 replaces 2d and 2dsphere index doc admonitions (#2082) * DOCSP-26193 replaces 2d and 2dsphere index doc admonitions * internal review feedback * DOCSP-26256 replaces views-related doc directives (#2092) * DOCSP-26275 replaces write-related doc directives (#2094) * DOCS-15437-reap-transactions (#2062) * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions * DOCS-15437-reap-transactions Co-authored-by: jason-price-mongodb <[email protected]> * DOCSP-26288 replaces auditing-related doc directives (#2102) * DOCSP-26288 replaces auditing-realted doc directives * internal review feedback * internal review feedback * (DOCSP-26124): Add new fill example (#2106) * (DOCSP-26124): Add new fill example * wording * wording * add clarification for values of zero * add note title * tweaks * internal review edits * fix output order * fix toc heading * wording * (DOCSP-22423): Clarify startup instructions for redactClientLogData (#2101) * Clarify startup instructions for redactClientLogData * copy review feedback * final fixes * DOCPS-26298 updates BSON-related doc directives (#2105) * DOCPS-26298 updates BSON-related doc directives * internal review feedback * internal review feedback * update python qe apps from testing with solutions architect (#1887) * DOCSP-26321 updates collation-related doc directives (#2112) * (DOCSP-26328): Migrate changelog script from Python 2 to Python 3 (#2116) * (DOCSP-26328): Migrate changelog script from Python 2 to Python 3 (#2113) * update Makefile command and requirements filename (#2114) * (DOCS-15722): 4.4.18 initial changelog and changelog script fixes (#2117) * (DOCS-15722): 4.4.18 initial changelog * fix bug with changelog output * refactoring * regenerate 4.4.18 changelog * fix typo * DOCSP-26358 replaces agg pipline doc directives (#2120) * DOCS-15516 Time series range outside 1970-2038 behavior (#2119) * Add a missing named reference definition in 5.1-compatibility (#2115) * DOCSP-25224 version cleanup in Method Reference Co-authored-by: jmd-mongo <[email protected]> Co-authored-by: Dave Cuthbert <[email protected]> Co-authored-by: Aleksander Binion <[email protected]> Co-authored-by: Jordan Smith <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Nick Villahermosa <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: davidhou17 <[email protected]> Co-authored-by: Heli Aldridge <[email protected]>
1 parent d9c17dd commit 888fad6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+189
-731
lines changed

config/redirects

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,3 +2090,6 @@ raw: ${prefix}/${version}/applications/drivers -> ${base}/drivers/
20902090
(v5.3-*]: ${prefix}/${version}/reference/method/quit -> ${base}/${version}/reference/method/js-native
20912091
(v5.3-*]: ${prefix}/${version}/reference/method/sleep -> ${base}/${version}/reference/method/js-native
20922092
(v5.3-*]: ${prefix}/${version}/reference/method/version -> ${base}/${version}/reference/method/js-native
2093+
2094+
(v4.2-*]: ${prefix}/${version}/reference/method/db.copyDatabase -> ${base}/database-tools/mongodump/#std-label-mongodump-example-copy-clone-database
2095+
(v4.2-*]: ${prefix}/${version}/reference/method/db.cloneDatabase -> ${base}/database-tools/mongodump/#std-label-mongodump-example-copy-clone-database

source/faq/concurrency.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,6 @@ database:
387387
* - Operation
388388
- Behavior
389389

390-
* - :method:`db.copyDatabase()`
391-
- This operation obtains a global (W) exclusive lock and blocks
392-
other operations until it finishes.
393-
394390
* - | :dbcommand:`reIndex`
395391
| :method:`db.collection.reIndex()`
396392
- .. versionchanged:: 4.2
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
.. note::
3+
4+
You cannot use ``resumeAfter`` to resume a change stream after an
5+
:ref:`invalidate event <change-event-invalidate>` (for example, a collection
6+
drop or rename) closes the stream. Starting in MongoDB 4.2, you can use
7+
:ref:`startAfter <change-stream-start-after>` to start a new change
8+
stream after an :ref:`invalidate event <change-event-invalidate>`.
9+

source/includes/cursor-index-use.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
.. note:: Index Use
3+
4+
To use an index with the :method:`~cursor.max()` method, you must use the
5+
:method:`~cursor.hint()` method to specify the index you want to use,
6+
exept when the :method:`~db.collection.find()` query is an equality
7+
condition on the ``_id`` field.
8+

source/includes/extracts-listCollections-auth.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ content: |
1414
The built-in role :authrole:`read` provides the privilege to run
1515
:dbcommand:`listCollections` for a specific database.
1616
17-
Starting in version 4.0, however, user without the required privilege
17+
Users without the required privilege
1818
can run the command with **both** ``authorizedCollections`` and
1919
``nameOnly`` options set to ``true``. In this case, the command returns
2020
just the name and type of the collection(s) to which the user has
@@ -48,8 +48,7 @@ content: |
4848
ref: listCollections-auth-show-collections
4949
content: |
5050
51-
Starting in version 4.0 of the ``mongo`` shell, ``show
52-
collections`` is equivalent to:
51+
The ``mongo`` shell, ``show collections`` is equivalent to:
5352
5453
.. code-block:: javascript
5554
@@ -79,8 +78,7 @@ content: |
7978
ref: listCollections-auth-showCollectionNames
8079
content: |
8180
82-
Starting in version 4.0 of the ``mongo`` shell,
83-
:method:`db.getCollectionNames()` is equivalent to:
81+
The :method:`db.getCollectionNames()` is equivalent to:
8482
8583
.. code-block:: javascript
8684

source/includes/extracts-sessions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ content: |
109109
ref: sessions-cursor-timeout
110110
content: |
111111
112-
Starting in MongoDB 3.6, MongoDB drivers and :binary:`~bin.mongosh`
112+
MongoDB drivers and :binary:`~bin.mongosh`
113113
associate all operations with a :doc:`server session
114114
</reference/server-sessions>`, with the exception of unacknowledged
115115
write operations. For operations not explicitly associated with a

source/includes/extracts-syncFrom.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ content: |
33
Sync Logic
44
~~~~~~~~~~
55
6-
.. versionchanged:: 3.4
7-
86
If an initial sync operation is in progress when you run
97
{{syncfrom}}, {{syncfrom}} stops the in-progress initial sync and
10-
restarts the sync process with the new target. In previous versions,
11-
if you run {{syncfrom}} during initial sync, MongoDB produces no
12-
error messages, but the sync target will not change until after the
13-
initial sync operation.
8+
restarts the sync process with the new target.
149
1510
Only modify the default sync logic as needed, and always exercise
1611
caution.

source/includes/extracts-zoned-sharding.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ content: |
114114
ref: zoned-sharding-drop-collection-change
115115
content: |
116116
117-
Starting in MongoDB 4.0.2, dropping a collection deletes its
118-
associated zone/tag ranges.
117+
Dropping a collection deletes its associated zone/tag ranges.
119118
120119
---
121120
ref: zoned-sharding-compound-hashed-downgrade

source/includes/fact-aggregate-readConcern.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ Starting in MongoDB 4.2, you can specify :doc:`read concern
22
</reference/read-concern>` level :readconcern:`"majority"` for an
33
aggregation that includes an :pipeline:`$out` stage.
44

5-
In MongoDB 4.0 and earlier, you cannot include the :pipeline:`$out`
6-
stage to use :readconcern:`"majority"` read concern for the aggregation.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
MongoDB uses an optimized build process that obtains and holds an exclusive
3+
lock on the specified collection at the start and end of the index build. All
4+
subsequent operations on the collection must wait until |method| releases
5+
the exclusive lock. |method| allows interleaving read and write
6+
operations during the majority of the index build.
7+
8+
For more information on the locking behavior of |method|, see
9+
:ref:`index-operations`.
10+
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Your application connection logic should include tolerance for automatic
2-
failovers and the subsequent elections. Starting in MongoDB 3.6, MongoDB drivers
2+
failovers and the subsequent elections. MongoDB drivers
33
can detect the loss of the primary and automatically
44
:ref:`retry certain write operations <retryable-writes>` a single time,
55
providing additional built-in handling of automatic failovers and elections:
66

7-
- MongoDB 4.2+ compatible drivers enable retryable writes by default
7+
.. versionchanged:: 4.2
8+
9+
Starting in MongoDB 4.2, compatible drivers enable retryable writes by default
810

9-
- MongoDB 4.0 and 3.6-compatible drivers must explicitly enable
10-
retryable writes by including :urioption:`retryWrites=true <retryWrites>` in the :ref:`connection string <mongodb-uri>`.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Starting in MongoDB 5.0 (also available starting in 4.4.2, 4.2.12, and
2-
4.0.22), changes made to the :ref:`database profiler
1+
Starting in MongoDB 5.0 (also available starting in 4.4.2, and 4.2.12),
2+
changes made to the :ref:`database profiler
33
<database-profiler>` ``level``, ``slowms``, ``sampleRate``, or
44
``filter`` using the :dbcommand:`profile` command or
55
:method:`db.setProfilingLevel()` wrapper method are recorded in the
6-
:option:`log file <mongod --logpath>`.
6+
:option:`log file <mongod --logpath>`.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
3+
.. versionchanged:: 4.2
4+
5+
Starting in MongoDB 4.2, multi-document transactions are available
6+
for both sharded clusters and replica sets.
7+
8+
9+

source/reference/method.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -390,18 +390,10 @@ Database
390390

391391
- Runs admin/diagnostic pipeline which does not require an underlying collection.
392392

393-
* - :method:`db.cloneDatabase()`
394-
395-
- *Deprecated*. Copies a database from a remote host to the current host when run against MongoDB 4.0 or earlier. Unsupported when run against MongoDB 4.2 or later.
396-
397393
* - :method:`db.commandHelp()`
398394

399395
- Returns help information for a :term:`database command`.
400396

401-
* - :method:`db.copyDatabase()`
402-
403-
- *Deprecated*. Copies a database to another database on the current host when run against MongoDB 4.0 or earlier. Unsupported when run against MongoDB 4.2 or later.
404-
405397
* - :method:`db.createCollection()`
406398

407399
- Creates a new collection or a view. Commonly used to create a capped collection.

source/reference/method/Mongo.watch.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ Definition
1717

1818
*For replica sets and sharded clusters only*
1919

20-
.. versionadded:: 4.0
21-
22-
Requires ``featureCompatibilityVersion`` (fCV) set to
23-
``"4.0"`` or greater. For more information on fCV, see
24-
:dbcommand:`setFeatureCompatibilityVersion`.
25-
2620
Opens a :ref:`change stream cursor <changeStreams>` for a replica
2721
set or a sharded cluster to report on all its non-``system``
2822
collections across its databases, with the exception of the

source/reference/method/Session.abortTransaction.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,14 @@ Definition
1515

1616
.. method:: Session.abortTransaction()
1717

18-
.. versionadded:: 4.0
19-
2018
Terminates the :doc:`multi-document transaction
2119
</core/transactions>` and rolls back any data changes made by the
2220
operations within the transaction. That is, the transaction ends
2321
without saving any of the changes made by the operations in the
2422
transaction.
2523

26-
.. note:: Availability
27-
28-
29-
- **In version 4.0**, MongoDB supports multi-document
30-
transactions on replica sets.
24+
.. include:: /includes/transaction-support
3125

32-
- **In version 4.2**, MongoDB introduces distributed
33-
transactions, which adds support for multi-document
34-
transactions on sharded clusters and incorporates the existing
35-
support for multi-document transactions on replica sets.
3626

3727
Behavior
3828
--------

source/reference/method/Session.commitTransaction.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,11 @@ Definition
1515

1616
.. method:: Session.commitTransaction()
1717

18-
.. versionadded:: 4.0
19-
2018
Saves the changes made by the operations in the :doc:`multi-document
2119
transaction </core/transactions>` and ends the transaction.
2220

23-
.. note:: Availability
24-
25-
26-
- **In version 4.0**, MongoDB supports multi-document
27-
transactions on replica sets.
21+
.. include:: /includes/transaction-support
2822

29-
- **In version 4.2**, MongoDB introduces distributed
30-
transactions, which adds support for multi-document
31-
transactions on sharded clusters and incorporates the existing
32-
support for multi-document transactions on replica sets.
3323

3424
Behavior
3525
--------

source/reference/method/Session.startTransaction.txt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,11 @@ Definition
1515

1616
.. method:: Session.startTransaction(<options>)
1717

18-
.. versionadded:: 4.0
19-
2018
Starts a :ref:`multi-document transaction <transactions>`
2119
associated with the session. At any given time, you can have at most
2220
one open transaction for a session.
2321

24-
.. note:: Availability
25-
26-
27-
- **In version 4.0**, MongoDB supports multi-document
28-
transactions on replica sets.
29-
30-
- **In version 4.2**, MongoDB introduces distributed
31-
transactions, which adds support for multi-document
32-
transactions on sharded clusters and incorporates the existing
33-
support for multi-document transactions on replica sets.
22+
.. include:: /includes/transaction-support
3423

3524
.. important::
3625

source/reference/method/UUID.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ Generates a BSON :abbr:`UUID (Universally unique identifier)` object.
3737
not provided, MongoDB generates a random UUID in
3838
`RFC 4122 v4 <https://tools.ietf.org/html/rfc4122>`_ format.
3939

40-
.. versionchanged:: 3.6
41-
42-
In earlier versions of :binary:`~bin.mongosh`,
43-
:method:`UUID` required a hexadecimal string argument. See the
44-
:v3.4:`3.4 manual </reference/method/UUID>`.
45-
4640
:returns: A BSON UUID object.
4741

4842
Example
@@ -85,7 +79,3 @@ This command outputs a random UUID in the following form:
8579

8680
UUID("dee11d4e-63c6-4d90-983c-5c9f1e79e96c")
8781

88-
.. versionchanged:: 3.6
89-
90-
In earlier versions of :binary:`~bin.mongosh`,
91-
:method:`UUID` required a hexadecimal string argument.

source/reference/method/cursor.max.txt

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,7 @@ The ``indexBounds`` parameter has the following prototype form:
5959
The fields correspond to *all* the keys of a particular index *in
6060
order*.
6161

62-
.. note:: Index Use
63-
64-
Starting in MongoDB 4.2, you must explicitly specify the particular
65-
index with the :method:`~cursor.hint()` method to run
66-
:method:`~cursor.max()` with the following exception: you do not
67-
need to hint if the :method:`~db.collection.find()` query is an
68-
equality condition on the ``_id`` field ``{ _id: <value> }``.
69-
70-
In previous versions, you could run :method:`~cursor.max()` with or
71-
without explicitly hinting the index regardless of the query
72-
condition. If run without the hint in 4.0 and earlier, MongoDB
73-
selects the index using the fields in the ``indexBounds``; however,
74-
if multiple indexes exist on same fields with different sort orders,
75-
the selection of the index may be ambiguous.
62+
.. include:: /includes/cursor-index-use
7663

7764
.. seealso::
7865

@@ -111,8 +98,6 @@ specify a range:
11198
- the bound specified by :method:`~cursor.max()` must be greater than
11299
the bound specified by :method:`~cursor.min()`.
113100

114-
.. versionchanged:: 4.0
115-
116101
``max()`` without ``min()``
117102
~~~~~~~~~~~~~~~~~~~~~~~~~~~
118103

@@ -183,9 +168,8 @@ Create the following indexes for the collection:
183168

184169
.. note::
185170

186-
Starting in MongoDB 4.0, the bound specified by
187-
:method:`~cursor.max()` must be greater than the bound specified by
188-
:method:`~cursor.min()`.
171+
The bound specified by :method:`~cursor.max()` must be greater than
172+
the bound specified by :method:`~cursor.min()`.
189173

190174
.. code-block:: javascript
191175

source/reference/method/cursor.min.txt

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,7 @@ Definition
5353

5454
{ field1: <min value>, field2: <min value2>, fieldN:<min valueN> }
5555

56-
.. note:: Index Use
57-
58-
Starting in MongoDB 4.2, you must explicitly specify the particular
59-
index with the :method:`~cursor.hint()` method to run
60-
:method:`~cursor.min()` with the following exception: you do not
61-
need to hint if the :method:`~db.collection.find()` query is an
62-
equality condition on the ``_id`` field ``{ _id: <value> }``.
63-
64-
In previous versions, you could run :method:`~cursor.min()` with or
65-
without explicitly hinting the index. If run without the hint in 4.0
66-
and earlier, MongoDB selects the index using the fields in the
67-
``indexBounds``; however, if multiple indexes exist on same fields
68-
with different sort orders, the selection of the index may be
69-
ambiguous.
56+
.. include:: /includes/cursor-index-use
7057

7158
.. seealso::
7259

@@ -105,8 +92,6 @@ specify a range:
10592
- the bound specified by :method:`~cursor.max()` must be greater than
10693
the bound specified by :method:`~cursor.min()`.
10794

108-
.. versionchanged:: 4.0
109-
11095
``min()`` without ``max()``
11196
~~~~~~~~~~~~~~~~~~~~~~~~~~~
11297

@@ -177,9 +162,8 @@ Create the following indexes for the collection:
177162

178163
.. note::
179164

180-
Starting in MongoDB 4.0, the bound specified by
181-
:method:`~cursor.max()` must be greater than the bound specified by
182-
:method:`~cursor.min()`.
165+
The bound specified by :method:`~cursor.max()` must be greater than the
166+
bound specified by :method:`~cursor.min()`.
183167

184168
.. code-block:: javascript
185169

source/reference/method/db.auth.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,6 @@ The :method:`db.auth()` has the following syntax forms:
8080

8181
db.auth( <username>, <password> )
8282

83-
.. tab:: MongoDB 4.0 and Earlier
84-
:tabid: mdb-4-0-earlier:
85-
86-
In MongoDB 4.0 and earlier, you must specify a cleartext
87-
password:
88-
89-
.. code-block:: javascript
90-
91-
db.auth( <username>, <password> )
9283

9384
.. _db-auth-syntax-user-document:
9485

0 commit comments

Comments
 (0)