✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
A mongoDB collection has the following structure:
{"sid": 128,"name": { "first": "Drew", "last": "Barrymore"},"course": "MasterAI","result": [ { "unit_code": "FIT3182", "unit_name": "Data processing for big data", "synopsis":"This unit pertains to managing big data.", "semester": 2, "year": [2023], "mark": 80 }],"yearOfUni": 3}Which of the following query finds out the number of students in each unit.