See MongoDB Aggregation - $nin match if value in array - #3 by steevej for an example of the concept mentioned by @Aasawari.