Suggest an editImprove this articleRefine the answer for “Can you filter by nested fields?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)Yes, you can. In MongoDB, nested fields are filtered using dot notation, e.g. `db.users.find({ "address.city": "Berlin" })`. **Key point:** nested fields are filtered the same way as ordinary ones, just using `field.subfield`.Shown above the full answer for quick recall.Answer (EN)ImageYes, you can. In MongoDB, nested fields are filtered using **dot notation**. **Example:** ```js db.users.find({ "address.city": "Berlin" }) ``` If a document has a nested object: ```json { "name": "Alex", "address": { "city": "Berlin", "street": "Main St." } } ``` - then filtering by `"address.city"` finds it with no trouble. **So:** nested fields are filtered the same way as ordinary ones, just using `field.subfield`.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.