Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Millise käsuga jagatakse dokumendid MongoDB-s gruppideks välja "department" alusel?
db.collection.aggregate([{$sort: {department: 1}}])
db.collection.aggregate([{$groupBy: {department: "$department"}}])
db.collection.aggregate([{$group: {_id: "$department"}}])
db.collection.aggregate([{$group: {department: "$department"}}])
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!