Commit 0b876838 by James Cropcho

collection variable

parent 338e8ea9
...@@ -60,3 +60,4 @@ I every reason to believe this tool will **not** corrupt your data or harm your ...@@ -60,3 +60,4 @@ I every reason to believe this tool will **not** corrupt your data or harm your
Released by Maypop Inc, © 2012, under the [MIT License] (http://www.opensource.org/licenses/MIT). Released by Maypop Inc, © 2012, under the [MIT License] (http://www.opensource.org/licenses/MIT).
throw "You have to supply a 'collection' variable, a la \"--eval 'var limit = 10'\"";
is 'limit' broken? is 'limit' broken?
to readme: contribuing/report issues etc to readme: contribuing/report issues etc
make public make public
if (typeof collection == "undefined") { if (typeof collection == "undefined") {
throw "You have to supply a 'collection' variable, à la \"--eval 'var limit = 10'\""; throw "You have to supply a 'collection' variable, à la --eval 'var collection = \"animals\"'";
} }
if (typeof limit == "undefined") { limit = db[collection].count(); } if (typeof limit == "undefined") { limit = db[collection].count(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment