In this chapter, we will learn how to use the mongo shell for database administration operations. Starting with simple CRUD (create, read, update, delete) operations, we will master scripting from the shell. We will also learn how to write MapReduce scripts from the shell and contrast them to the aggregation framework, which we will dive deeper into in Chapter 5, Aggregation. Finally, we will explore authentication and authorization using the MongoDB community and its paid counterpart, the Enterprise Edition.




















































