File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -319,10 +319,10 @@ const setWindowFields5: PipelineStage = {
319
319
sortBy : { score : 1 } ,
320
320
output : {
321
321
minScores : {
322
- $firstN : { input : '$score' , n : 3 } ,
322
+ $firstN : { input : '$score' , n : 3 }
323
323
} ,
324
324
maxScores : {
325
- $lastN : { input : '$score' , n : 3 } ,
325
+ $lastN : { input : '$score' , n : 3 }
326
326
}
327
327
}
328
328
}
@@ -454,9 +454,9 @@ const group7: PipelineStage = {
454
454
}
455
455
} ,
456
456
maxScores : { $maxN : { input : '$score' , n : 3 } } ,
457
- minScores : { $minN : { input : '$score' , n : 3 } } ,
457
+ minScores : { $minN : { input : '$score' , n : 3 } }
458
458
}
459
- }
459
+ } ;
460
460
461
461
const stages1 : PipelineStage [ ] = [
462
462
// First Stage
Original file line number Diff line number Diff line change @@ -84,43 +84,43 @@ const bottom: Expression.Bottom = {
84
84
output : [ '$playerId' , '$score' ] ,
85
85
sortBy : { score : 1 }
86
86
}
87
- }
87
+ } ;
88
88
89
89
const bottomN : Expression . BottomN = {
90
90
$bottomN : {
91
91
output : [ '$playerId' , '$score' ] ,
92
92
sortBy : { score : 1 } ,
93
93
n : 3
94
94
}
95
- }
95
+ } ;
96
96
97
97
const firstN : Expression . FirstN = {
98
98
$firstN : {
99
99
input : '$score' ,
100
- n : 3 ,
100
+ n : 3
101
101
}
102
- }
102
+ } ;
103
103
104
104
const lastN : Expression . LastN = {
105
105
$lastN : {
106
106
input : '$score' ,
107
- n : 3 ,
107
+ n : 3
108
108
}
109
- }
109
+ } ;
110
110
111
111
const maxN : Expression . MaxN = {
112
112
$maxN : {
113
113
input : '$score' ,
114
- n : 3 ,
114
+ n : 3
115
115
}
116
- }
116
+ } ;
117
117
118
118
const minN : Expression . MinN = {
119
119
$minN : {
120
120
input : '$score' ,
121
- n : 3 ,
121
+ n : 3
122
122
}
123
- }
123
+ } ;
124
124
125
125
const top : Expression . Top = {
126
126
$top : {
You can’t perform that action at this time.
0 commit comments