diff --git a/source/documents/modify-multiple.txt b/source/documents/modify-multiple.txt index 2fbcbebbf..f13b5dda2 100644 --- a/source/documents/modify-multiple.txt +++ b/source/documents/modify-multiple.txt @@ -87,6 +87,7 @@ modal displays. $set: { "tomatoes.viewer.rating" : 5 } } + The following example updates the ``tomatoes.viewer.numReviews`` and ``tomatoes.viewer.meter`` fields with the Compass :guilabel:`Update Documents` modal. @@ -108,13 +109,21 @@ statement: $set: { "tomatoes.viewer.meter" : 99 } } -The :guilabel:`Preview` text box populates with sample documents. +This syntax: + +- Increments the ``tomatoes.viewer.numReviews`` field by ``1``. +- Sets the ``tomatoes.viewer.meter`` field to ``99``. -Click the :icon-fa5:`chevron-right` arrow next to ``tomatoes`` +The :guilabel:`Preview` text box populates with sample documents. +To preview the updates to the documents, click the +:icon-fa5:`chevron-right` arrow next to ``tomatoes`` and then click the :icon-fa5:`chevron-right` arrow next to :guilabel:`rating` to preview the updated :guilabel:`numReviews` and :guilabel:`meter` fields. +Click the :guilabel:`Update Documents` button to update the collection +data. + Learn More ----------