Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit fd8d3ec

Browse files
committed
Update comment for $\unwind examples
1 parent 147a845 commit fd8d3ec

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

generator/config/expression/objectToArray.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ tests:
3333
warehouses:
3434
$objectToArray: '$instock'
3535
-
36-
# The example in the docs uses the short syntax for $unwind,
37-
# but the aggregation builder always uses the more verbose syntax.
36+
# The builder uses the verbose form of the $unwind operator
3837
# $unwind: '$warehouses'
3938
$unwind:
4039
path: '$warehouses'

generator/config/stage/facet.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ tests:
2121
$facet:
2222
categorizedByTags:
2323
-
24+
# The builder uses the verbose form of the $unwind operator
2425
# $unwind: '$tags'
2526
$unwind:
2627
path: '$tags'

generator/config/stage/replaceRoot.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ tests:
3131
link: 'https://www.mongodb.com/docs/manual/reference/operator/aggregation/replaceRoot/#-replaceroot-with-a-document-nested-in-an-array'
3232
pipeline:
3333
-
34+
# The builder uses the verbose form of the $unwind operator
3435
# $unwind: '$grades'
3536
$unwind:
3637
path: '$grades'

generator/config/stage/replaceWith.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ tests:
3131
link: 'https://www.mongodb.com/docs/manual/reference/operator/aggregation/replaceWith/#-replacewith-a-document-nested-in-an-array'
3232
pipeline:
3333
-
34+
# The builder uses the verbose form of the $unwind operator
3435
# $unwind: '$grades'
3536
$unwind:
3637
path: '$grades'

generator/config/stage/sortByCount.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tests:
1717
link: 'https://www.mongodb.com/docs/manual/reference/operator/aggregation/sortByCount/#example'
1818
pipeline:
1919
-
20+
# The builder uses the verbose form of the $unwind operator
2021
# $unwind: '$tags'
2122
$unwind:
2223
path: '$tags'

0 commit comments

Comments
 (0)