# Document Database

*noun*

say it: **“DOK-yuh-ment DAY-tuh-bays”** **/ˈdɑkjəmənt ˈdeɪtəbeɪs/**

A database that stores each record as a document, such as JSON, holding all the related data in one place.

## What is **Document Database**?

A **document database** stores each record as a self-contained document, usually JSON, that can hold nested objects and lists. MongoDB and Cosmos DB are document databases.

```json
{ "_id": 42, "title": "Pancakes", "tags": ["breakfast"], "author": { "name": "Ana" } }
```

## In a sentence

- “A **document database** doesn't need every record to have the same fields.”
- “MongoDB is a **document database**: each recipe is one document with its ingredients inside.”

Level: Novice · [More NoSQL terms at this level](https://www.ask-codey.com/glossary?category=nosql&level=1)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/document-database
