Required access
Use a dedicated writer scoped to the destination database:Connection fields
The complete URI is encrypted as one secret and masked after saving. URI query
options such as
authSource, replicaSet, and tls=true are passed to
PyMongo.
Create the connection
- Open Connections.
- Click + New Connection.
- Set the role to Destination.
- Choose MongoDB.
- Enter the complete URI and destination database.
- Click Test Connection.
- Save after the test succeeds.
Prepare the collection
MongoDB can create a collection on the first write, but production deployments should normally create and review the collection, validator, and indexes first. Create a unique index for the selected Upsert key:Configure delivery
- Open Destinations and click Add destination.
- Choose the MongoDB connection and target database.
- Open Transformations, select the MongoDB destination, and create the SQL model.
- Save, validate, preview, and publish the revision.
- Set the published output target to
database.collection, such asanalytics.orders. - Select one or more stable, non-null Upsert keys.
- Save the destination and run the pipeline.
Write behavior
The public MongoDB destination uses Upsert. Every output row must contain a non-null value for each selected merge key. Matching documents are updated; new documents are inserted._idis the default stable key for MongoDB-to-MongoDB pipelines.- A business identifier such as
external_idcan be used for SQL sources. - Internal fields whose names begin with
_dltare never written. - A rerun with the same keys updates existing documents instead of duplicating them.
Document limits and BSON mapping
Documents are BSON-encoded before network I/O. A document exceeding MongoDB’s 16 MiB limit is rejected with the collection and a bounded record identifier. Common SQL values map to BSON-safe strings, numbers, decimals, dates, binary values, arrays, and nested documents.Verify delivery
Current limitations
- REPLACE and Change Streams are disabled.
- Atlas, replica-set, sharded-cluster, and live TLS destination certification remains incomplete.
- PostgreSQL-to-MongoDB and MongoDB-to-MongoDB have automated evidence. MySQL, ClickHouse, DuckDB, and manual UI pairings remain pending owner validation.
Troubleshooting
See MongoDB source and the
MongoDB and PostgreSQL verified paths.