List commands that can be run when NOT connected to a DB
help
Show databases
show dbs
Show current database name
db
Switch to database
use dbName
Show collections within database
show collections
List commands that can be run on current DB
db.help()
List commands that can be run on collection
db.collection.help()
Writing a method with invoking it does what?
Returns the actual source code of the function, so you can see how it works.
Example
db.name.find