Skip to content

Instantly share code, notes, and snippets.

@RichFromGalvanize
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save RichFromGalvanize/10687673 to your computer and use it in GitHub Desktop.

Select an option

Save RichFromGalvanize/10687673 to your computer and use it in GitHub Desktop.

Revisions

  1. Richard Key revised this gist Apr 14, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion script.js
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    db.getCollectionNames().forEach(function(name){ print(name + ' - ' + Object.keys(db[name].findOne() || {}).length); });
    db.getCollectionNames().forEach(function(name) {
    print(name + ' - ' + Object.keys(db[name].findOne() || {}).length);
    });
  2. Richard Key renamed this gist Apr 14, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Richard Key created this gist Apr 14, 2014.
    1 change: 1 addition & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    db.getCollectionNames().forEach(function(name){ print(name + ' - ' + Object.keys(db[name].findOne() || {}).length); });