# MongoDB

> Single-node DocumentDB 1.2 gateway verified in 19.0.1-r4, plus historical PG18 and FerretDB deployment notes.

---

LLMS index: [llms.txt](/llms.txt)

---

On Debian 13 amd64, r4 exercised single-node DocumentDB and its standalone DocumentDB gateway. Drivers connect to the gateway and DocumentDB stores BSON in PostgreSQL tables. The instance retains its native PG administration connection. Both logical restore paths returned 63 documents through the original collection name. [r4 gateway and recovery scope](/docs/concepts/architecture/#documentdb)

## Earlier PG18 reference environment {#questions}

This section also retains the earlier Pigsty example with PostgreSQL 18, DocumentDB 1.0 and FerretDB. The r4 candidate used single-node DocumentDB 1.2 and its separate gateway. The distributed module depends on Citus, which is outside the Mimus support scope. Check driver and authentication behavior, scheduled jobs and collection catalog recovery for the stack you deploy.

## Source and credit {#source}

DocumentDB is developed at [documentdb/documentdb](https://github.com/documentdb/documentdb) (originally opened at
[microsoft/documentdb](https://github.com/microsoft/documentdb)); FerretDB at
[FerretDB/FerretDB](https://github.com/FerretDB/FerretDB). Deployment and extension notes in this section are adapted
from the [Pigsty documentation](https://pigsty.io/docs/conf/mongo/) (© PGSTY, CC BY 4.0 / Apache-2.0). MongoDB is a
trademark of MongoDB, Inc.; Mimus is not affiliated with MongoDB, Inc. See
[Licence and attribution](/license/#adapted).

---

Section pages:

- [DocumentDB and the gateway](/docs/mongo/architecture/): How DocumentDB stores BSON in PostgreSQL and how a gateway translates the MongoDB wire protocol.
- [Try it with Pigsty](/docs/mongo/quickstart/): Deploy PostgreSQL 18 with DocumentDB and a stateless FerretDB gateway using Pigsty's mongo template.
- [Compatibility](/docs/mongo/compatibility/): How DocumentDB and the gateway divide MongoDB compatibility, what the packaged extensions support, and what remains untested in Mimus.

---

Backlinks:

- [Protocol & Capability Matrix](/docs/reference/matrix/)
