Skip to content

DOCSP-16570 fix typo in 4.2 changelog #5445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions source/includes/extracts-4.2-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -801,15 +801,14 @@ content: |

Starting in MongoDB 4.2,

- Replace document operations, such as
:method:`db.collection.replaceOne()` or :ref:`db.collection.update(
query, replacement, ... ) <update-behavior-replacement-document>`,
attempt to target a single shard, first by using the query filter. If the
operation cannot target a single shard by the query filter, it then
attempts to target by the replacement document.

In earlier versions, the operation attempts to target using the
replacement document.
- Operations which replace documents, such as
:method:`~db.collection.replaceOne()` or
:method:`~db.collection.update()` (when used with a replacement
document), will first attempt to target a single shard by using the
query filter. If the operation cannot target a single shard by the
query filter, it then attempts to target by the replacement
document. In earlier versions, these operations only attempt to
target using the replacement document.

- The :method:`~db.collection.save()` method is deprecated: use the
:method:`~db.collection.insertOne()` or
Expand Down