# Combining Conditions: $and, $or and $not

Two fields in one filter already mean "and"; $or matches when any of its conditions does, $and holds conditions that can't share one document, and $not and $nor rule documents out.

![Cheat sheet: Combining Conditions: $and, $or and $not](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/6b3e668faed94df58b8608c45e13b1f9.webp)

- Category: MongoDB
- Level: Apprentice
- Tags: Logical Operators (mongodb), mongodb, Query Filter, Query Operators
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-combining-conditions-cheat-sheet
