File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -801,15 +801,14 @@ content: |
801
801
802
802
Starting in MongoDB 4.2,
803
803
804
- - Replace document operations, such as
805
- :method:`db.collection.replaceOne()` or :ref:`db.collection.update(
806
- query, replacement, ... ) <update-behavior-replacement-document>`,
807
- attempt to target a single shard, first by using the query filter. If the
808
- operation cannot target a single shard by the query filter, it then
809
- attempts to target by the replacement document.
810
-
811
- In earlier versions, the operation attempts to target using the
812
- replacement document.
804
+ - Operations which replace documents, such as
805
+ :method:`~db.collection.replaceOne()` or
806
+ :method:`~db.collection.update()` (when used with a replacement
807
+ document), will first attempt to target a single shard by using the
808
+ query filter. If the operation cannot target a single shard by the
809
+ query filter, it then attempts to target by the replacement
810
+ document. In earlier versions, these operations only attempt to
811
+ target using the replacement document.
813
812
814
813
- The :method:`~db.collection.save()` method is deprecated: use the
815
814
:method:`~db.collection.insertOne()` or
You can’t perform that action at this time.
0 commit comments