1.

$sum is an accumulator operator available only in the _______ stage.(a) $group(b) $sets(c) $accumulator(d) None of the mentionedI got this question in homework.The above asked question is from Pipeline Operators topic in section Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer» CORRECT option is (a) $group

For explanation: $sum CALCULATES and RETURNS the sum of all the NUMERIC values.


Discussion

No Comment Found

Related InterviewSolutions