1.

_______ accepts only single argument expression.(a) $setIsSubset(b) $bool(c) $anyElementTrue(d) None of the mentionedThis question was posed to me in an online interview.My doubt stems from Pipeline Optimization in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer» CORRECT ANSWER is (c) $anyElementTrue

To ELABORATE: $anyElementTrue returns true if any elements of a set evaluate to true; otherwise, returns false.


Discussion

No Comment Found

Related InterviewSolutions