MongoDB
Connect a MongoDB database for federated analysis. Collections are mounted into the query engine and can be joined with datasets from other connectors.
When to use
- Document collections used as application data stores.
- Combining collection data with relational or file-based sources in one analysis.
Before you begin
Prepare a MongoDB user with read access to the target database and collections, and ensure Datyo can reach the database over the network.
Connection settings
| Field | Required | Description |
|---|---|---|
| Connection URI | Yes | A MongoDB connection string, e.g. mongodb://user:password@host:27017. Because it embeds the password, the entire URI is stored encrypted. |
| Database | Yes | The database to connect. |
The collection to analyze is selected when the dataset is defined.
Test and save
Enter the fields and use Test connection. On success, choose the collection to import.
Capabilities
- Execution model: Federated. Collections can be joined with datasets from other connectors.
- Access: Read-only.
- Schema: MongoDB documents are schema-flexible; fields are inferred from sampled documents. Adding column descriptions helps the Agent interpret them.
Troubleshooting
- Connection fails — verify the URI, that the credentials embedded in it are correct, and that the host is reachable; include the appropriate options (replica set, TLS) in the URI if your deployment requires them.
- A field is missing or mistyped — inconsistent document shapes can cause inference gaps; re-sync after the data stabilizes and add column descriptions.