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
99
1010.. update:: $addToSet
1111
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
1514 array.
1615
1716 The :update:`$addToSet` operator has the form:
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Definition
1515
1616 .. code-block:: javascript
1717
18- { $push: { <field1>: <value1>, ... }
18+ { $push: { <field1>: <value1>, ... } }
1919
2020 .. include:: /includes/use-dot-notation.rst
2121
You can’t perform that action at this time.
0 commit comments