Match one of several conditions.
Section: Filter patterns
Combine clauses with $or
javascript
javascript
db.orders.find({ $or: [{ priority: "high" }, { total: { $gt: 1000 } }] })Explanation
Logical operators help express more realistic query conditions.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Filter patterns