In the mongo shell, I frequently find myself using the show databases and show collections commands. (It is really useful for debugging situations where I have misspelled or misremembered a database or collection name).
You demonstrate how to do this in the manual using the $run() command, but they are probably used often enough to warrant their own methods.
In the mongo shell, I frequently find myself using the
show databases
andshow collections
commands. (It is really useful for debugging situations where I have misspelled or misremembered a database or collection name).You demonstrate how to do this in the manual using the
$run()
command, but they are probably used often enough to warrant their own methods.