Skip to content

Commit 7383d9a

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-33143-positional-note-v4.4 (#5045)
Co-authored-by: jason-price-mongodb <[email protected]>
1 parent ac4bbd5 commit 7383d9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/reference/operator/update/positional-filtered.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,12 @@ The following updates the values that are greater than or equal to
433433
{ arrayFilters: [ { "t.type": "quiz" } , { "score": { $gte: 8 } } ], multi: true}
434434
)
435435

436+
.. note::
437+
438+
Don't add spaces around the array identifiers. If you use
439+
``grades.$[ t ].questions.$[ score ]`` in the previous example, the
440+
example fails.
441+
436442
After the operation, the collection has the following document:
437443

438444
.. code-block:: javascript

0 commit comments

Comments
 (0)