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 = {
319319 sortBy : { score : 1 } ,
320320 output : {
321321 minScores : {
322- $firstN : { input : '$score' , n : 3 } ,
322+ $firstN : { input : '$score' , n : 3 }
323323 } ,
324324 maxScores : {
325- $lastN : { input : '$score' , n : 3 } ,
325+ $lastN : { input : '$score' , n : 3 }
326326 }
327327 }
328328 }
@@ -454,9 +454,9 @@ const group7: PipelineStage = {
454454 }
455455 } ,
456456 maxScores : { $maxN : { input : '$score' , n : 3 } } ,
457- minScores : { $minN : { input : '$score' , n : 3 } } ,
457+ minScores : { $minN : { input : '$score' , n : 3 } }
458458 }
459- }
459+ } ;
460460
461461const stages1 : PipelineStage [ ] = [
462462 // First Stage
Original file line number Diff line number Diff line change @@ -84,43 +84,43 @@ const bottom: Expression.Bottom = {
8484 output : [ '$playerId' , '$score' ] ,
8585 sortBy : { score : 1 }
8686 }
87- }
87+ } ;
8888
8989const bottomN : Expression . BottomN = {
9090 $bottomN : {
9191 output : [ '$playerId' , '$score' ] ,
9292 sortBy : { score : 1 } ,
9393 n : 3
9494 }
95- }
95+ } ;
9696
9797const firstN : Expression . FirstN = {
9898 $firstN : {
9999 input : '$score' ,
100- n : 3 ,
100+ n : 3
101101 }
102- }
102+ } ;
103103
104104const lastN : Expression . LastN = {
105105 $lastN : {
106106 input : '$score' ,
107- n : 3 ,
107+ n : 3
108108 }
109- }
109+ } ;
110110
111111const maxN : Expression . MaxN = {
112112 $maxN : {
113113 input : '$score' ,
114- n : 3 ,
114+ n : 3
115115 }
116- }
116+ } ;
117117
118118const minN : Expression . MinN = {
119119 $minN : {
120120 input : '$score' ,
121- n : 3 ,
121+ n : 3
122122 }
123- }
123+ } ;
124124
125125const top : Expression . Top = {
126126 $top : {
You can’t perform that action at this time.
0 commit comments