Created
November 11, 2011 06:37
-
-
Save Spaxe/1357358 to your computer and use it in GitHub Desktop.
Print all available options for MongoDB's db.runCommand()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prints all available command from db admin, db.runCommand options | |
// Usage: mongo < printRunCommandOptions.js | |
use admin; | |
for (var cmd in db.getCollection("$cmd")) { | |
print(cmd); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment