File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ The :pipeline:`$merge` takes a document with the following fields:
184
184
- The unique index can be a :ref:`sparse <index-type-sparse>`
185
185
index.
186
186
187
+ - The unique index cannot be a :ref:`partial <index-type-partial>`
188
+ index.
189
+
187
190
- For output collections that already exist, the corresponding
188
191
index must already exist.
189
192
@@ -517,10 +520,10 @@ The ``newrestaurants`` collection will contain documents with
517
520
information on new restaurant openings by month (``date`` field) and
518
521
postcode (shard key); specifically, the :ref:`on <merge-on>`
519
522
identifier is ``["date", "postcode"]`` (the ordering of the fields
520
- does not matter). Because :pipeline:`$merge` requires a unique,
523
+ does not matter). Because :pipeline:`$merge` requires a unique
521
524
index with keys that correspond to the :ref:`on
522
525
<merge-on>` identifier fields, create the unique index
523
- (the ordering of the fields do not matter): [#uniqueoption]_
526
+ (the ordering of the fields do not matter): [#uniqueoption]_
524
527
525
528
.. code-block:: javascript
526
529
You can’t perform that action at this time.
0 commit comments