Skip to main content

DB::MONGO

Establish connection to MongoDB.

drawing

Syntax

resources:
<resource-id>:
type: DB::MONGO
props:
username: <username>
password: <password>
connectionString: "mongodb://localhost"
dbName: <database>

Properties

PropertyDescriptionType
<resource-id>Unique identifier for the resourcestring
typeType of the resourcestring
propsProperties specific to this resource. Refer to props section for more details.object

props

PropertyDescriptionTypeRequired
usernameUsername for Mongostringtrue
passwordPassword for Mongostringtrue
connectionStringMongo connectionstringtrue
dbNameMongo DB namestringtrue

Example

resources:
mongodb:
type: DB::MONGO
props:
username: username
password: password
connectionString: "mongodb://localhost"
dbName: database