Suggest an editImprove this articleRefine the answer for “What does $ne do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)`$ne` (not equal) is an operator that selects documents where a field's value doesn't equal the given one, e.g. `db.users.find({ age: { $ne: 25 } })`. **Key point:** `$ne` is the opposite of `$eq`, it excludes documents with a specific value.Shown above the full answer for quick recall.Answer (EN)Image`$ne` (not equal) is an operator that selects documents where a field's value **doesn't equal** the given one. **Example:** ```js db.users.find({ age: { $ne: 25 } }) ``` This query returns every user whose `age` **doesn't equal 25**. **The gist of it:** `$ne` is the opposite of `$eq`. It excludes documents with a specific value.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.