Google News
logo
MongoDB - Quiz(MCQ)
Which of the following performs a relative complement of the second set relative to the first?
A)
$setUnion
B)
$setEquals
C)
$setDifference
D)
$setIntersection

Correct Answer :   $setIntersection


Explanation : $setDifference returns a set with elements that appear in the first set but not in the second set.

Advertisement