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

Commit a02228c

Browse files
committed
Add comment for all examples converted to verbose form
1 parent 248551d commit a02228c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+57
-26
lines changed

generator/config/accumulator/covariancePop.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ tests:
3030
covariancePopForState:
3131
$covariancePop:
3232
-
33+
# Example uses the short form, the builder always generates the verbose form
3334
# $year: '$orderDate'
3435
$year:
3536
date: '$orderDate'

generator/config/accumulator/covarianceSamp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ tests:
3030
covarianceSampForState:
3131
$covarianceSamp:
3232
-
33+
# Example uses the short form, the builder always generates the verbose form
3334
# $year: '$orderDate'
3435
$year:
3536
date: '$orderDate'

generator/config/accumulator/push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ tests:
2626
$group:
2727
_id:
2828
day:
29+
# Example uses the short form, the builder always generates the verbose form
2930
# $dayOfYear: '$date'
3031
$dayOfYear:
3132
date: '$date'
3233
year:
34+
# Example uses the short form, the builder always generates the verbose form
3335
# $year: '$date'
3436
$year:
3537
date: '$date'

generator/config/accumulator/sum.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ tests:
2222
$group:
2323
_id:
2424
day:
25+
# Example uses the short form, the builder always generates the verbose form
2526
# $dayOfYear: '$date'
2627
$dayOfYear:
2728
date: '$date'
2829
year:
30+
# Example uses the short form, the builder always generates the verbose form
2931
# $year: '$date'
3032
$year:
3133
date: '$date'

generator/config/expression/arrayToObject.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tests:
2020
$project:
2121
item: 1
2222
dimensions:
23-
# The example renders a single value, but the builder generates an array for consistency
23+
# Example uses the short form, the builder always generates the verbose form
2424
# $arrayToObject: '$dimensions'
2525
$arrayToObject:
2626
- '$dimensions'

generator/config/expression/avg.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ tests:
2121
-
2222
$project:
2323
quizAvg:
24+
# Example uses the short form, the builder always generates the verbose form
2425
# $avg: '$quizzes'
2526
$avg:
2627
- '$quizzes'

generator/config/expression/dateAdd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ tests:
4646
unit: 'day'
4747
amount: 3
4848
-
49+
# Example uses the short form, the builder always generates the verbose form
4950
# $merge: 'shipping'
5051
$merge:
5152
into: 'shipping'

generator/config/expression/dateFromString.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,5 @@ tests:
7676
$dateFromString:
7777
dateString: '$date'
7878
timezone: '$timezone'
79-
# onNull: new Date(0)
8079
onNull: !bson_utcdatetime 0
8180

generator/config/expression/dateSubtract.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ tests:
4343
$expr:
4444
$eq:
4545
-
46+
# Example uses the short form, the builder always generates the verbose form
4647
# $month: '$logout'
4748
$month:
4849
date: '$logout'
@@ -55,6 +56,7 @@ tests:
5556
unit: 'hour'
5657
amount: 3
5758
-
59+
# Example uses the short form, the builder always generates the verbose form
5860
# $merge: 'connectionTime'
5961
$merge:
6062
into: 'connectionTime'

generator/config/expression/dayOfMonth.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ tests:
3030
-
3131
$project:
3232
day:
33+
# Example uses the short form, the builder always generates the verbose form
3334
# $dayOfMonth: '$date'
3435
$dayOfMonth:
3536
date: '$date'

0 commit comments

Comments
 (0)