MongoDB Course

MongoDB is a document database: instead of rows split across rigid tables, it stores flexible, JSON-shaped documents grouped into collections. If you've taken this site's SQL course, most of what you already know about filtering, sorting, and combining data still applies here — the syntax and the underlying data model are just different. If you haven't, that's fine too; this course doesn't assume any SQL background.

What you'll learn

You'll start with the fundamentals — connecting with mongosh, databases and collections, and the four basic operations every database needs: inserting, querying, updating, and deleting documents. From there the course moves into indexes (for performance), the aggregation pipeline (for reshaping and summarizing data), and finally the single most important design decision in MongoDB: whether related data should be embedded inside a document or kept in a separate collection and referenced.

Every lesson runs real mongosh commands and shows the exact JSON-shaped output MongoDB returns, so what you read here is what you'd actually see typing the same command yourself.

Lessons

  1. Introduction
  2. Databases & Collections
  3. Inserting Documents
  4. Querying Documents
  5. Updating Documents
  6. Deleting Documents
  7. Indexes
  8. The Aggregation Pipeline
  9. Schema Design: Embedding vs Referencing
  10. Using a Driver
Where to start: begin with Introduction and go in order — later lessons, especially aggregation and schema design, build directly on the query and update syntax covered earlier.