-
Notifications
You must be signed in to change notification settings - Fork 4
col.find(query)
Geoff Cox edited this page Dec 6, 2015
·
1 revision
col.find(query)
var query = [
['age', '>', '20'],
'and', ['name', '!=', 'chris'],
'and', [
['city', '=', '"Seattle"'],
'or', ['city', '=', '"New York"']
]
];
col.find(query).then(function (docs) {
docs.each(function (doc) {
// doc = next doc matching query
}).then(function () {
// done iterating through all found docs
});
});