Skip to content

Instantly share code, notes, and snippets.

@Michael-J-Ward
Michael-J-Ward / agg_example.txt
Last active February 6, 2016 19:13
mongoDB aggregation example
> db.students.find().limit(2).pretty()
{
"_id" : 2,
"name" : "Corliss Zuk",
"scores" : [
{
"score" : 67.03077096065002,
"type" : "exam"
},
{