Introduction
Use $nin to find items that do NOT match any value in a list. It helps exclude unwanted data.
You want to find all products except those in certain categories.
You need to get users who are not from specific cities.
You want to exclude certain tags from search results.
You want to filter out orders that have specific statuses.
You want to find documents where a field's value is not in a given set.