Skip to content

Commit 5082a7e

Browse files
ianf-mongodbjeff-allen-mongo
authored andcommitted
DOCS-14158 Adding blurb to cover expression operator and upsert flag.
1 parent 8e91ab1 commit 5082a7e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/reference/method/db.collection.update.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,14 @@ If the :ref:`\<update\> <update-parameter>` document contains *only*
310310

311311
For an example, see :ref:`example-update-multi`.
312312

313+
Using ``$expr`` in an Update with ``Upsert``
314+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
315+
316+
Attempting to use the :manual:`$expr </reference/operator/query/expr/>`
317+
operator with the upsert flag set to ``true`` will generate an error.
318+
319+
.. _update-sharded-collection:
320+
313321
Sharded Collections
314322
~~~~~~~~~~~~~~~~~~~
315323

0 commit comments

Comments
 (0)