Skip to content

Commit 3aba080

Browse files
committed
BREAKING CHANGE: remove support for mquery(collection), first param is always filter
1 parent f94d1a8 commit 3aba080

File tree

2 files changed

+61
-70
lines changed

2 files changed

+61
-70
lines changed

lib/mquery.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ function Query(criteria, options) {
5555
}
5656

5757
if (criteria) {
58-
if (criteria.find && criteria.deleteOne && criteria.updateOne) {
59-
// quack quack!
60-
this.collection(criteria);
61-
} else {
62-
this.find(criteria);
63-
}
58+
this.find(criteria);
6459
}
6560
}
6661

0 commit comments

Comments
 (0)