Skip to main content
Connections

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
PartWhat it is
userThe database user's name
passwordThat user's password
hostThe IP address, server name or Atlas cluster
portThe connection port (default: 27017)
databaseThe database's name
tip

In MongoDB Atlas the connection string is under DatabaseConnectDrivers.

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.