Tag

#MongoDB

Every article tagged MongoDB, in one place.

  • 10 articles
  • 11 min of reading
  • 26 Sep, 2026 last updated

Showing 10 articles

MongoDBNew 1 min read

MongoDB for SQL Developers

MongoDB stores data as JSON-like documents in collections . If you know SQL, most concepts map directly; the big shift is designing around how data is read rather than normalising everything. Vocabulary Table → collection . Row → document (stored as BSON, whic...

26 Sep, 2026 Author 312 84
Read article
MongoDB 1 min read

MongoDB Schema Design: Embed or Reference?

"Schemaless" doesn't mean "no design". In MongoDB, schema design starts from one question: what does the application read together? Embed when data is read together and owned by the parent { "_id": "ord_42", "customerId": 7, "status": "paid", "shippingAddress"...

08 Sep, 2026 Author 1.46K 135
Read article
MongoDB 1 min read

Mongoose Models, Validation and Middleware

MongoDB itself is flexible about document shape. Mongoose adds schemas, validation, defaults and helpers on top of the official driver, which brings structure to application code. Defining a model import mongoose from 'mongoose'; await mongoose.connect(process...

15 Jul, 2026 Author 273 35
Read article
MongoDB 1 min read

Multi-Document Transactions in MongoDB

Single-document updates in MongoDB have always been atomic. Since version 4.0 (replica sets) and 4.2 (sharded clusters), MongoDB also supports multi-document ACID transactions. Do you need one? Often a good document design avoids the need. Updating an order an...

27 Jun, 2026 Author 700 134
Read article