connector
MongoDB
Document database — query collections with arcodash's editor.
Connection fields
| Field | Required | Description |
|---|---|---|
host | Yes | Hostname or IP address of the MongoDB server. |
port | No | Defaults to 27017. |
user | No | Username, if the server requires auth. |
password | No | Password for user. |
db | Yes | Database name to connect to. |
auth_source | No | Database to authenticate against. Defaults to "admin". |
replica_set | No | Replica set name, if connecting to a replica set. |
MongoDB isn't SQL — the query editor expects a JSON document like {"collection": "orders", "filter": {}, "limit": 100}, or {"collection": "orders", "aggregate": [ ... pipeline stages ... ]} for an aggregation.
Example configuration
{
"host": "mongo.internal.example.com",
"port": 27017,
"user": "arcodash_reader",
"password": "••••••••",
"db": "analytics",
"auth_source": "admin"
}Caveats
- Query text must be valid JSON in the collection/filter (or collection/aggregate) shape above — plain MongoDB shell syntax (db.orders.find(...)) is not accepted.
- Schema introspection samples one random document per collection (via $sample) to infer column names — a collection with inconsistent document shapes will only show the fields present in that one sampled document.