</>CodexBash
All articles
Databases

MongoDB for beginners

Get started with MongoDB, the most popular document database: documents and collections, running it with Docker, the mongosh shell, inserting and querying with filters and projections, updates and operators, indexes, the aggregation pipeline, schema design by embedding or referencing, and when to choose it.

CodexBash, , 5 min read

Relational databases store data in tables of rows and columns, and spread related data across tables joined by keys. MongoDB takes a different approach: it stores documents, JSON-like records that can hold nested objects and arrays, so data that belongs together can live together. It is the most widely used document database, common in Node.js stacks, content platforms and applications whose data shape changes often. This guide covers the essentials: running it, querying it, indexing it and designing data for it.

Sign in to read the rest

The whole 5 minute article is free with an account, along with every problem, lesson and tutorial. No card.