Skip to content

Commit 97effea

Browse files
committed
SERVER-6131 Correct description of behavior when $unwind is applied to an empty array. (The specified field is dropped from the result.)
1 parent a2764c0 commit 97effea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/reference/aggregation.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,9 @@ The current pipeline operators are:
406406
not an array, :mongodb:func:`aggregate()` generates an error.
407407

408408
- If you specify a target field for :pipeline:`$unwind` that
409-
holds an empty array (``[]``), then the document passes
410-
through unchanged.
409+
holds an empty array (``[]``), then that field is removed
410+
from the result while all other fields are passed through
411+
unchanged.
411412

412413
.. pipeline:: $group
413414

0 commit comments

Comments
 (0)