reymesson1 / septimoejercicio

1 stars 0 forks source link

The Dashboard Item should be by Type instead item #79

Closed reymesson1 closed 5 years ago

reymesson1 commented 5 years ago

var master = await Master.aggregate([{"$match":{"date":{"$gte":today}}},{"$unwind":"$item"},{"$group":{"_id":"$item.development","total":{"$sum":1}}}])

reymesson1 commented 5 years ago

The change is just to item.development on the group tag