MongoDB shell

This must be little tutorial for command which I have use with mongodb shell. This list is not complete and will be update in future.

 
Shell command Command description
mongo
Connect to mongo shell
show dbs
Show all databases
use
Use database for all query
db
Show current database

Other see at mongo Shell Quick Reference

Comments