1.

$allElementsTrue returns true if no element of a set evaluates to ____________(a) false(b) true(c) 0(d) 1The question was posed to me by my school teacher while I was bunking the class.My enquiry is from Pipeline Optimization in section Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Correct answer is (a) false

Explanation: An empty ARRAY RETURNS TRUE.



Discussion

No Comment Found

Related InterviewSolutions