Home »
MCQs »
MongoDB MCQs
Aggregation operations in MongoDB ___ values from multiple documents
36. Aggregation operations in MongoDB ___ values from multiple documents.
- Data set
- Set
- Group
- None of the mentioned above
Answer: C) Group
Explanation:
The aggregate () method in MongoDB is used to perform the aggregation. Processing data records and returning computed results are the objectives of aggregation operations. Aggregation operations combine values from multiple documents into a single result, and they can perform a variety of operations on the grouped data in order to return a single result. Aggregation operations can be used to group values from multiple documents together. The SQL function count (*) and the group by function are equivalent to the MongoDB aggregation.