Skip to content

Commit 4f29c8e

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-33143-positional-note (#5031) (#5042)
* DOCSP-33143-positional-note * DOCSP-33143-positional-note * DOCSP-33143-positional-note * DOCSP-33143-positional-note * DOCSP-33143-positional-note --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 2d362ea commit 4f29c8e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,11 @@ The following updates the values that are greater than or equal to
383383
{ arrayFilters: [ { "t.type": "quiz" }, { "score": { $gte: 8 } } ] }
384384
)
385385

386-
.. note::
386+
.. note::
387387

388-
The spacing is significant in the array identifier. If you write
389-
the identifier as ``grades.$[ t ].questions.$[ score ]``, the
390-
operation will fail.
388+
Don't add spaces around the array identifiers. If you use
389+
``grades.$[ t ].questions.$[ score ]`` in the previous example, the
390+
example fails.
391391

392392
After the operation, the collection has the following document:
393393

@@ -422,4 +422,3 @@ nested ``grades.questions`` array, regardless of ``type``:
422422
- :query:`$elemMatch`
423423

424424
.. |arrow| unicode:: U+27A4
425-

0 commit comments

Comments
 (0)