How to get MongoDB help

Contents of page >
  • 1) How to get MongoDB help >

1) How to get MongoDB help >

Simply typing help shows the help available in mongoDB.

> help                    help on db methods         help on collection methods                    sharding helpers                    replica set helpers
       help admin                   administrative help
       help connect                 connecting to a db help
       help keys                    key shortcuts
       help misc                    misc things to know
       help mr                      mapreduce

       show dbs                     show database names
       show collections             show collections in current database
       show users                   show users in current database
       show profile                 show most recent system.profile entries with time >= 1ms
       show logs                    show the accessible logger names
       show log [name]              prints out the last segment of log in memory, 'global' is default
       use <db_name>                set current database                list objects in collection foo { a : 1 } )     list objects in foo where a == 1
       it                           result of the last line evaluated; use to further iterate
       DBQuery.shellBatchSize = x   set default number of items to display on shell
       exit                         quit the mongo shell

Having any doubt? or you liked the tutorial! Please comment in below section.
Please express your love by liking (JMSE) on facebook, following on google+ or Twitter. You may join our fbGroup or linkedInGroup as well.


Using like statement (as in sql) in MongoDB

Update documents in collection in mongoDB

Delete documents in collection (table) in mongoDB

How to Delete all documents from collection in MongoDB

Labels: MongoDB
Must read for you :