# Missing Fields, null and $exists

Documents in one collection don't all have the same fields; a filter for null matches a missing field too, $exists asks whether the field is there at all, and $type finds values stored as the wrong kind.

![Cheat sheet: Missing Fields, null and $exists](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/5f56dddb259241dcbc8d0eb1a43ca545.webp)

- Category: MongoDB
- Level: Apprentice
- Tags: $exists, BSON, mongodb, null (mongodb), type()
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-missing-fields-null-and-exists-cheat-sheet
