Undskyld gutter, det var dumt:
(...)
$group: {
_id : { dType : "$departments.deptType",
dName : "$departments.deptName"
},
dCount: { $sum: 1 },
}
(...)
Undskyld gutter, det var dumt:
(...)
$group: {
_id : { dType : "$departments.deptType",
dName : "$departments.deptName"
},
dCount: { $sum: 1 },
}
(...)