Skip to content

Commit 6aff616

Browse files
mungitoperritojeff-allen-mongo
authored andcommitted
DOCSP-15890 update deprecated mongosh crud methods
1 parent 37d1680 commit 6aff616

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. important:: Deprecated ``mongosh`` Method
2+
3+
This method is deprecated in :binary:`~bin.mongosh`. For alternative
4+
methods, see :ref:`compatibility`.
5+

source/reference/method/db.collection.insert.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ db.collection.insert()
1010
:depth: 1
1111
:class: singlecol
1212

13+
.. include:: /includes/fact-mongosh-shell-method-deprecated.rst
14+
1315
Definition
1416
----------
1517

1618
.. method:: db.collection.insert()
1719

18-
19-
.. include:: /includes/fact-mongosh-shell-method.rst
20-
21-
2220
Inserts a document or documents into a collection.
2321

2422
The :method:`~db.collection.insert()` method has the following

source/reference/method/db.collection.remove.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ db.collection.remove()
1010
:depth: 1
1111
:class: singlecol
1212

13+
.. include:: /includes/fact-mongosh-shell-method-deprecated.rst
14+
1315
Definition
1416
----------
1517

1618
.. method:: db.collection.remove()
1719

18-
19-
.. include:: /includes/fact-mongosh-shell-method.rst
20-
21-
2220
Removes documents from a collection.
2321

2422
The :method:`db.collection.remove()` method can have one of two

source/reference/method/db.collection.update.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,19 @@ db.collection.update()
66

77
.. default-domain:: mongodb
88

9-
10-
119
.. contents:: On this page
1210
:local:
1311
:backlinks: none
1412
:depth: 1
1513
:class: singlecol
1614

15+
.. include:: /includes/fact-mongosh-shell-method-deprecated.rst
16+
1717
Definition
1818
----------
1919

2020
.. method:: db.collection.update(query, update, options)
2121

22-
.. include:: /includes/fact-mongosh-shell-method.rst
23-
2422
Modifies an existing document or documents in a collection. The
2523
method can modify specific fields of an existing document or documents
2624
or replace an existing document entirely, depending on the

0 commit comments

Comments
 (0)