Chapter 2. MongoDB through the JavaScript shell

 

In this chapter

  • CRUD operations in the MongoDB shell
  • Building indexes and using explain()
  • Getting help

The previous chapter hinted at the experience of running MongoDB. If you’re ready for a more hands-on introduction, this is it. Using the MongoDB shell, this chapter teaches the database’s basic concepts through a series of exercises. You’ll learn how to create, read, update, and delete (CRUD) documents and, in the process, get to know MongoDB’s query language. In addition, we’ll take a preliminary look at database indexes and how they’re used to optimize queries. Then we’ll end the chapter by exploring some basic administrative commands, and I’ll suggest a few ways of getting help as you continue on. Think of this chapter as both an elaboration of the concepts already introduced and as a practical tour of the most common tasks performed from the MongoDB shell.

2.1. Diving into the MongoDB shell

 
 
 

2.2. Creating and querying with indexes

 
 

2.3. Basic administration

 
 
 

2.4. Getting help

 
 

2.5. Summary

 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest