So your problem is doing searches for documents with duplicates in markets.salePeriods.panel.storeSegmentations … focus on that and then afterwards think about the $pull