Suggest an editImprove this articleRefine the answer for “What format are filters defined in in MongoDB?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)Filters in MongoDB are defined as a JSON-like object, where the key is the field's name and the value is the search condition (a plain value, an operator like `$gt`, or a nested field via dot notation). **Key point:** a filter is just an ordinary object in the form "key → condition", passed into CRUD methods (`find`, `update`, `delete`, etc.).Shown above the full answer for quick recall.Answer (EN)ImageFilters in MongoDB are defined **as a JSON-like object**, where the key is the field's name and the value is the search condition. **A simple filter example:** ```js { age: 25 } ``` **An example with an operator:** ```js { age: { $gt: 18 } } ``` **An example with a nested field:** ```js { "address.city": "Berlin" } ``` In short: a filter is an ordinary object in the form *key → condition*, passed into CRUD methods (`find`, `update`, `delete`, etc.).For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.