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 @@ -805,15 +805,14 @@ content: |
805805
806806 Starting in MongoDB 4.2,
807807
808- - Replace document operations, such as
809- :method:`db.collection.replaceOne()` or :ref:`db.collection.update(
810- query, replacement, ... ) <update-behavior-replacement-document>`,
811- attempt to target a single shard, first by using the query filter. If the
812- operation cannot target a single shard by the query filter, it then
813- attempts to target by the replacement document.
814-
815- In earlier versions, the operation attempts to target using the
816- replacement document.
808+ - Operations which replace documents, such as
809+ :method:`~db.collection.replaceOne()` or
810+ :method:`~db.collection.update()` (when used with a replacement
811+ document), will first attempt to target a single shard by using the
812+ query filter. If the operation cannot target a single shard by the
813+ query filter, it then attempts to target by the replacement
814+ document. In earlier versions, these operations only attempt to
815+ target using the replacement document.
817816
818817 - The :method:`~db.collection.save()` method is deprecated: use the
819818 :method:`~db.collection.insertOne()` or
You can’t perform that action at this time.
0 commit comments