1.

Which of the following accepts any number of argument expression?(a) $setIntersection(b) $setDifference(c) $setEquals(d) None of the mentionedThe question was posed to me in an interview.I'm obligated to ask this question of Pipeline Optimization topic in portion Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Correct choice is (a) $setIntersection

The best I can EXPLAIN: $setIntersection RETURNS a set with ELEMENTS that APPEAR in all of the input sets.



Discussion

No Comment Found

Related InterviewSolutions