Skip to content

DOCS-5169: Fix missing brace in $push, rephrase intro in $addToSet #2263

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions source/reference/operator/update/addToSet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ Definition

.. update:: $addToSet

The :update:`$addToSet` operator adds a value to an array only *if* the
value is *not* already in the array. If the value *is* in the
array, :update:`$addToSet` does not modify the
The :update:`$addToSet` operator adds a value to an array unless the value
is already present, in which case :update:`$addToSet` does nothing to that
array.

The :update:`$addToSet` operator has the form:
Expand Down
2 changes: 1 addition & 1 deletion source/reference/operator/update/push.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Definition

.. code-block:: javascript

{ $push: { <field1>: <value1>, ... }
{ $push: { <field1>: <value1>, ... } }

.. include:: /includes/use-dot-notation.rst

Expand Down