mongodb: minimal howto

mongo --host dbname // host and dbname

Show all databases:
> show dbs

Connect to specific db:
> use dbname

Show all collections (this is tables in the mongo's naming):
> show collections

Show contents of collection:
> db.collection_name.find ().pretty () // db — isn't database name, this is a KEY word, collection_name — is a name of collection which you got with previous command.

Make a select query:
> db.comments.find ({'creatorId':Number (72116967665828320)}).pretty () // select all messages from collection «comments» where field «creatorId» = Number (72116967665828320), type Number very important.