Skip to content

DOCS-13822 permit empty update modifiers #5049

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
Mar 5, 2021

Conversation

npentrel
Copy link
Contributor

@npentrel npentrel commented Mar 4, 2021

No description provided.

Starting in MongoDB 5.0, :binary:`~bin.mongod` no longer raises an
error when you use an update operator like :update:`${{operator}}`
with an empty operand expression ( ``{ }`` ). An empty update results
in no changes and no :term:`oplog` entry is created (i.e. the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our style guide discourages the use of "i.e.", since it often does not translate well for a global audience.

Suggested change
in no changes and no :term:`oplog` entry is created (i.e. the
in no changes and no :term:`oplog` entry is created (meaning that the

- :update:`$unset`

An empty update results in no changes and no :term:`oplog` entry is
created (i.e. the operation is a no-op).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above comment.

@jeff-allen-mongo jeff-allen-mongo merged commit 29e33d3 into mongodb:v5.0 Mar 5, 2021
mongo-cr-bot pushed a commit that referenced this pull request Oct 12, 2023
… (#5049)

* (DOCSP-33497) Adds Rust to the Connection Strings page dropdown

* Includes changes from tech review
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 23, 2025
…if not limiting/skipping (#5049)

* MONGOID-5005 - .sum, .count, and similar aggregables should ignore sort if not limiting/skipping

* release note

Co-authored-by: shields <[email protected]>
Co-authored-by: Dmitry Rybakov <[email protected]>
Co-authored-by: Oleg Pudeyev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants