In MongoDB, the $setIsSubset
aggregation pipeline operator accepts two arrays and returns true
when the first array is a subset of the second, and false
when it isn’t.
The first array is also considered a subset when it equals the second array.
Continue reading