Last active
November 3, 2021 14:45
-
-
Save eedrummer/b2c1817dfd3071ada410c2a631a4eb84 to your computer and use it in GitHub Desktop.
Queries for looking into MongoDB at the CODI Linkage Agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollection('match_groups').aggregate([{ | |
$group: { | |
_id:{$size:'$run_results'}, | |
total: { $sum: 1 }, | |
} | |
}]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollection('match_groups').aggregate([{ | |
$unwind: "$run_results" | |
}, | |
{ | |
$group: { | |
_id:'$run_results.project', | |
total: { $sum: 1 } | |
} | |
}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment