Data Modeling Schema Design
Schema Validation With Mongoose
Model Relationships: Embed vs Reference
Enforce a Collection JSON Schema Validator
TTL Index for Auto-Expiring Documents
Model Product Variations in a Document
Embed One-to-Many for Single-Query Reads
Many-to-Many With Referenced ObjectIds
Capped Collection Rolling Event Log
Query-Driven Document Schema Design
Recommendation Engine Data Model
Time Series Collection With Windowed Aggregations
Aggregation Pipelines
Aggregate Sales by Category
Total Sales per Category Pipeline
Left Outer Join With $lookup
Deconstruct Arrays With $unwind
Order Revenue by Category Pipeline
Histogram With $bucket Aggregation
Time-Bucketed Event Aggregation
Multi-Facet Aggregation With $facet
Inventory Report Aggregation Pipeline
Recursive Org Chart With $graphLookup
Running Totals With $setWindowFields
Materialized View With $merge
Correlated $lookup With Sub-Pipeline
Indexing Query Optimization
Create an Index in MongoDB
Compound Index for Filter and Sort
Partial and Unique Sparse Indexes
Case-Insensitive Index With Collation
Analyze Query Plan With explain()
Optimize a Slow MongoDB Query
Covered Query With Compound Index
Design Indexes From Query Patterns
Multikey Indexing on Array Fields
Wildcard Index for Dynamic Fields
Crud Basics
Basic CRUD For a Collection
Insert Document With Duplicate Handling
Update Documents With Update Operators
Insert a Document in MongoDB
Find Documents With a Query Filter
Append to Array With $push
Atomic findOneAndUpdate Returning New Doc
Unique Values With distinct and countDocuments
bulkWrite: Ordered vs Unordered
Specialized Search
Multi-Field Text Index and Search
Geospatial Queries With 2dsphere
Inverted Index for Text Search
Querying Projections
Array Updates With $addToSet and $pull
Regex Query and Index Usability
Paginated Retrieval With skip, limit, sort
Multi-Criteria Query With Operators
Paginated Chat History from MongoDB
Update Array Elements With arrayFilters
Array Projection With $elemMatch and $slice
Compare Two Fields With $expr
Change Streams Realtime
Change Stream Insert and Update Watcher
Filtered Change Stream Pipeline
Real-Time Processing With Change Streams
Resumable Change Stream With Resume Token
Scaling Operations
Zero-Downtime Schema Migration Plan
Schema and Index Design for Large Collections
Versioned Document Datastore
Mongoose Orm
CRUD Operations with Mongoose
Mongoose Virtuals and Methods
Typed Mongoose Data Layer
Mongoose Save Hooks for Password Hashing
Resolving References With Mongoose populate
Mongoose Discriminators for Single-Collection Inheritance
Transactions Gridfs Consistency
Multi-Document ACID Transaction With Retry
GridFS Upload and Retrieve
Tune Read Preference and Write Concern