1.

Which of the following performs a relative complement of the second set relative to the first?(a) $setIntersection(b) $setDifference(c) $setEquals(d) $setUnionThe question was posed to me in examination.This intriguing question originated from Pipeline Optimization in portion Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Right CHOICE is (a) $setIntersection

The explanation: $setDifference RETURNS a set with elements that APPEAR in the FIRST set but not in the SECOND set.



Discussion

No Comment Found

Related InterviewSolutions