This document provides tips and tricks for using the MongoDB shell, including:
- The shell allows running Javascript and accessing MongoDB functions and objects
- It can be used for debugging queries, testing, and administration
- However, Javascript numbers and dates can be confusing to work with in the shell
- Functions like load(), runCommand(), getProfilingLevel() and forEach() provide useful shell capabilities
- The shell is generally slower than queries run directly on the server