I have a data set with this structure:
{
"price" : 48.00"
"year" : "2008",
"model" : "something",
"manufacturer" : "ACME",
"productgroup" : "3629",
}
I want to count how many items
a manufacturer has per product group
, so the output for the above sample data, would be:
{productgroup:"3629", manufacturer: "ACME", count: 34 }
I do everything in mongo shell/robomongo
and i am glad for every hint how to tackle this.