MongoDB
Set up a MongoDB connection in the workspace for the database actions to use.
MongoDB
Connects a MongoDB database to the workspace. The MongoDB database actions in your robots use this connection.
Fields
Connection string
Enter the full MongoDB connection string. It follows this shape:
mongodb://user:password@host:port/database
Example:
mongodb://admin:mypassword@192.168.0.1:27017/production
For MongoDB Atlas (cloud) connections, the Atlas dashboard gives you the string directly, in this shape:
mongodb+srv://user:password@cluster.mongodb.net/database
| Part | What it is |
|---|---|
user | The database user's name |
password | That user's password |
host | The IP address, server name or Atlas cluster |
port | The connection port (default: 27017) |
database | The database's name |
tip
In MongoDB Atlas the connection string is under Database → Connect → Drivers.
Using it in the Designer
For a robot to use this connection, add the MongoDB - Connection action to the flow. In the action's settings, pick the connection saved in the workspace. Later MongoDB actions (query, insert, update and the rest) use it automatically.