1.

__________ returns the highest value from the group of values in documents.(a) $end(b) $last(c) $max(d) $maximumThe question was posed to me in homework.The doubt is from Pipeline Operators topic in portion Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer» CORRECT choice is (C) $MAX

Explanation: $max returns the highest value that results from applying an expression to each DOCUMENT in a group of documents that share the same group by KEY.


Discussion

No Comment Found

Related InterviewSolutions