Suggest an editImprove this articleRefine the answer for “How do you filter documents where an array contains a specific value?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)To filter documents where an array field contains a specific value, use an ordinary comparison against that array field, e.g. `db.users.find({ skills: "MongoDB" })`. **Key point:** MongoDB checks whether the array contains that element on its own - it's enough to name the field and the value, no special operator required.Shown above the full answer for quick recall.Answer (EN)ImageTo filter documents where an array contains a specific value, use an **ordinary comparison against the array field**. **Example:** ```js db.users.find({ skills: "MongoDB" }) ``` If a document has an array: ```json { "name": "Alex", "skills": ["MongoDB", "Node.js"] } ``` - that document will be found, because `"MongoDB"` is one of the elements of `skills`. **So:** to filter by an array, it's enough to name the field and the value, MongoDB checks on its own whether the array contains that element.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.