File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
source/reference/operator/update Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,8 @@ Definition
9
9
10
10
.. update:: $addToSet
11
11
12
- The :update:`$addToSet` operator adds a value to an array only *if* the
13
- value is *not* already in the array. If the value *is* in the
14
- array, :update:`$addToSet` does not modify the
12
+ The :update:`$addToSet` operator adds a value to an array unless the value
13
+ is already present, in which case :update:`$addToSet` does nothing to that
15
14
array.
16
15
17
16
The :update:`$addToSet` operator has the form:
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Definition
15
15
16
16
.. code-block:: javascript
17
17
18
- { $push: { <field1>: <value1>, ... }
18
+ { $push: { <field1>: <value1>, ... } }
19
19
20
20
.. include:: /includes/use-dot-notation.rst
21
21
You can’t perform that action at this time.
0 commit comments