diff options
author | Aaron <aaron@10gen.com> | 2009-05-11 16:38:15 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-05-11 16:38:15 -0400 |
commit | 60ea7cc443863e005ac4abd07cb6eaf0f309a40b (patch) | |
tree | 4fce0ebf7fd0500cea386d72e97f2079ddc49747 /shell/collection.js | |
parent | 8e36f60caa199876e9debd3dcdbbc631aa2948e1 (diff) | |
download | mongo-60ea7cc443863e005ac4abd07cb6eaf0f309a40b.tar.gz |
count() in shell takes query
Diffstat (limited to 'shell/collection.js')
-rw-r--r-- | shell/collection.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/collection.js b/shell/collection.js index 0f30e875dab..71e4ef42980 100644 --- a/shell/collection.js +++ b/shell/collection.js @@ -248,8 +248,8 @@ DBCollection.prototype.getIndexSpecs = function(){ } -DBCollection.prototype.count = function(){ - return this.find().count(); +DBCollection.prototype.count = function( x ){ + return this.find( x ).count(); } /** |