Key Concepts

Review core concepts you need to learn to master this subject

Printing a List of Databases

In the mongosh shell, running the command show dbs prints a list of all the databases in a MongoDB instance.

CRUD I: Finding Documents
Lesson 1 of 2
  1. 1
    MongoDB is one of the easiest databases to get started with! MongoDB can easily be run in a terminal using the [MongoDB Shell](…
  2. 2
    In the world of databases, persistence describes a database’s ability to store data that is stable and enduring. There are four essential functions …
  3. 3
    In the last exercise, we learned how to use MongoDB’s .find() command to query all documents in a collection. However, what if we wanted to find a specific set of data in our collection? If we are …
  4. 4
    When we are working with MongoDB databases, sometimes we’ll want to draw connections between multiple documents. MongoDB lets us embed documents directly within a parent document. These nested docu…
  5. 5
    In the previous exercise, we briefly learned about MongoDB’s implicit equality operator $eq. MongoDB provides us with many more [comparison query operators](…
  6. 6
    When working with a MongoDB collection, there will likely be instances when we want to sort our query results by a particular field or set of fields. Conveniently, MongoDB allows us to sort our que…
  7. 7
    MongoDB allows us to store some pretty large, detailed documents in our collections. When we run queries on these collections, MongoDB returns whole documents to us by default. These documents may …
  8. 8
    Nice job! In this lesson, we learned how to query documents in MongoDB. Let’s recap some key takeaways from the lesson: * We can view a list of all our databases by running the show dbs command. *…

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo