{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreibw6niklgipuxbcreocrgpk25q2w7wr6tzrgzszercrgod5352tni",
    "uri": "at://did:plc:5sgu76a53rz3n6unbykmovqy/app.bsky.feed.post/3mi355fm6uib2"
  },
  "description": "MongoDB is an open-source document database that stores data as BSON documents grouped into collections. Each document is a self-contained JSON-like object with a flexible schema.\n\n\nKey features\n\n * Flexible schema. Documents in the same collection can have different shapes; no migrations to add fields.\n * Aggregation pipeline. Query and transformation framework supporting grouping, joins ($lookup), and faceted search.\n * Horizontal scaling. Built-in sharding distributes data across nodes by sha",
  "path": "/engineering-glossary/mongodb-no-sql/",
  "publishedAt": "2026-03-27T22:10:55.000Z",
  "site": "https://sahilkapoor.com",
  "tags": [
    "PostgreSQL",
    "NoSQL",
    "Document Database",
    "BSON",
    "Aggregation Pipeline",
    "Sharding",
    "Replica Set",
    "Replication",
    "MongoDB Data Modeling: How to Design Schemas for Real-World Applications"
  ],
  "textContent": "**MongoDB** is an open-source document database that stores data as BSON documents grouped into collections. Each document is a self-contained JSON-like object with a flexible schema.\n\n## Key features\n\n  * **Flexible schema.** Documents in the same collection can have different shapes; no migrations to add fields.\n  * **Aggregation pipeline.** Query and transformation framework supporting grouping, joins (`$lookup`), and faceted search.\n  * **Horizontal scaling.** Built-in sharding distributes data across nodes by shard key.\n  * **Replica sets.** Automatic failover and read scaling across replica members.\n  * **Change streams.** Reactive event stream of inserts, updates, and deletes.\n\n\n\n## Origin\n\nReleased in 2009 by 10gen (later renamed MongoDB Inc.) and made open source under the AGPL. The Server Side Public License (SSPL) replaced AGPL in 2018.\n\nšŸ”—\n\n**Related Terms**\nPostgreSQL, NoSQL, Document Database, BSON, Aggregation Pipeline, Sharding, Replica Set, Replication\n\nšŸ“–\n\n**Further Reading**\nMongoDB Data Modeling: How to Design Schemas for Real-World Applications",
  "title": "MongoDB",
  "updatedAt": "2026-05-13T19:11:01.778Z"
}