Connection

Configuration

NAMETYPEDESCRIPTIONREQUIREDREADONLY
hostsstringtruefalse
usernamestringfalsefalse
passwordstringfalsefalse
databasestringfalsefalse
sslbooleanfalsefalse
srvbooleanfalsefalse
paramsstringAdditional connection parameters, formatted as a query stringfalsefalse

Example

1{
2 "name": "mongodb connection",
3 "type": "mongodb",
4 "configuration": {
5 "database": "",
6 "hosts": "mongodb.example.net",
7 "params": "",
8 "password": "password",
9 "srv": false,
10 "ssl": false,
11 "username": "admin"
12 }
13}

Model Sync

Source

Configuration

NAMETYPEDESCRIPTIONREQUIREDREADONLY
querystringfalsefalse
aggregationstringfalsefalse
databasestringDatabasetruefalse
collectionstringCollectiontruefalse

Example

1{
2 ...
3 "configuration": {
4 "aggregation": "",
5 "collection": "users",
6 "database": "public",
7 "query": "db.users.find({\"name.family\": \"Smith\"})"
8 }
9}