1.

Which of the following is syntax for calculating minimum value?(a) { $minimum: }(b) { $min: }(c) { $minimum: }(d) None of the mentionedThe question was asked by my college director while I was bunking the class.Asked question is from Pipeline Operators topic in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

The correct ANSWER is (B) { $min: }

Easiest explanation: $min returns the lowest 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