Suggest an editImprove this articleRefine the answer for “Which method takes the filter in MongoDB?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)The filter is given as the first argument to most CRUD methods: `find()`, `findOne()`, `updateOne()`/`updateMany()`, `replaceOne()`, `deleteOne()`/`deleteMany()`. **Key point:** the filter is always passed as the first parameter to the method that finds, updates, or deletes documents.Shown above the full answer for quick recall.Answer (EN)ImageThe filter is given as the **first argument** to most CRUD methods, such as: - `find()` - `findOne()` - `updateOne()` / `updateMany()` - `replaceOne()` - `deleteOne()` / `deleteMany()` **Example:** ```js db.users.find({ age: 25 }) // filter: { age: 25 } db.users.updateOne({ name: "Alex" }, { $set: { age: 26 } }) db.users.deleteMany({ isActive: false }) ``` So: the filter is always passed as the **first parameter** to the method that finds, updates, or deletes documents.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.