Skip to content

Commit de5c4cd

Browse files
author
Sam Kleinman
committed
minor: stylistic changes to unwind aggregation reference
1 parent 68ef50d commit de5c4cd

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

source/reference/aggregation.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -395,24 +395,25 @@ The current pipeline operators are:
395395

396396
.. note::
397397

398-
The following behaviors are present in :pipeline:`$unwind`:
398+
:pipeline:`$unwind` has the following behaviors:
399399

400400
- :pipeline:`$unwind` is most useful in combination
401401
with :pipeline:`$group`.
402402

403-
- The effects of an unwind can be undone with the
404-
:pipeline:`$group` pipeline operators.
403+
- You may undo the effects of unwind operation with the
404+
:pipeline:`$group` pipeline operator.
405405

406406
- If you specify a target field for :pipeline:`$unwind` that
407-
does not exist in an input document, the input document is
408-
ignored (generates no result documents).
407+
does not exist in an input document, the pipeline ignores the
408+
input document, and will generates no result documents.
409409

410410
- If you specify a target field for :pipeline:`$unwind` that is
411411
not an array, :mongodb:func:`aggregate()` generates an error.
412412

413413
- If you specify a target field for :pipeline:`$unwind` that
414-
holds an empty array (``[]``) in an input document, the input
415-
document is ignored (generates no result documents).
414+
holds an empty array (``[]``) in an input document, the
415+
pipeline ignores the input document, and will generates no
416+
result documents.
416417

417418
.. pipeline:: $group
418419

0 commit comments

Comments
 (0)