Overview

Today's focus: learning the fundamentals of MongoDB. Understood what NoSQL means, how MongoDB stores data, and performed basic CRUD operations using the MongoDB shell or Compass.

What I Learned Today

Key Concepts

MongoDB

Database Structure

Basic CRUD Operations

Insert

Insert one document:

db.users.insertOne({ name: "John", age: 25 })

Insert multiple documents:

db.users.insertMany([
  { name: "A", age: 20 },
  { name: "B", age: 30 }
])

Find

Find all documents:

db.users.find()

Find with filter:

db.users.find({ age: 25 })