Representative document-store connector. The same general approach (collections listed as tables, fields inferred from sample documents, queries are filter / pipeline objects) applies to other document stores.
| Field | Required | Sensitive | Default |
|---|---|---|---|
| Connection URI | Yes | Yes | — |
A single MongoDB URI carries host, port, username, password, and database name. The full URI is stored encrypted.
Connect to your MongoDB instance with mongosh as a user with
userAdminAnyDatabase or dbOwner on the target database.
Switch to the admin database to create the user:
use admin;
db.createUser({
user: "dagflux",
pwd: "choose-a-strong-password",
roles: [
{ role: "readWrite", db: "mydb" }
]
});
For read-only access, use the read role instead of readWrite.
If your MongoDB server is firewalled (especially MongoDB Atlas), add your machine's IP to the access list:
The URI format is:
mongodb://USERNAME:PASSWORD@HOST:PORT/DATABASE?retryWrites=true
Or for MongoDB Atlas:
mongodb+srv://USERNAME:[email protected]/DATABASE?retryWrites=true&w=majority
URL-encode the password if it contains special characters.
Paste the full URI into the Connection URI field. DagFlux uses the database from the URI as the default; you can still browse other databases on the same cluster from the picker.
When you ask the AI to transform data in MongoDB, the assistant chooses the right approach for the request — see Nodes — Transformer for the full breakdown.