Skip to content

neotenic/packets-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packets

protobowl packets editor

db.questions.aggregate([
 {$group: {
        _id: {type: "$type", year: "$year"},
     type: {
         $last: "$type"
     },
     year: {
         $last: "$year"
     }
 }}, 
 {$group: {
     _id: "$type",
     years: {
         $push: "$year"
     }
   }}
]).result




db.questions.aggregate([
{$match: {year: 2010, type: 'qb'}},
 {$group: {
        _id: "$tournament",
     tournament: {
         $last: "$tournament"
     },
     difficulty: {
         $last: "$difficulty"
     }
 }}, 
 {$group: {
     _id: "$difficulty",
     tournaments: {
         $push: "$tournament"
     }
   }}
]).result

Releases

No releases published

Packages

No packages published