- Reference >
- Operators >
- Aggregation Framework Operators >
- Set Operators (Aggregation) >
- $setIsSubset (aggregation)
$setIsSubset (aggregation)¶
- $setIsSubset¶
New in version 2.6.
Takes two arrays and returns true when the first array is a subset of the second and false otherwise.
Important
$setIsSubset takes arrays as arguments and treats these arrays as sets. $setIsSubset ignores duplicate entries in input arrays and produce arrays that contain unique entries.