Query Filter
noun
say it: “KWEER-ee FIL-ter” /ˈkwɪri ˈfɪltər/
An object that describes which documents a MongoDB query should match, with field names and the values or conditions they need.
What is Query Filter?
A query filter is an object describing which documents you want: field names with the values or conditions to match.
db.orders.find({ status: 'shipped', 'shipTo.city': 'Denver' })
In a sentence
- “The query filter { organic: true, "farm.town": "Stone Bridge" } finds organic vendors from Stone Bridge.”
- “An empty query filter, {}, matches every document.”
Level: Apprentice · More MongoDB terms at this level
Updated