MongoDB
Connect to MongoDB database
Configuration
Find Documents
Operation
Find Documents
Host*
localhost or your.mongodb.host
Port*
27017
Database Name*
your_database
Username*
mongodb_user
Password*
••••••••
Auth Source
admin
SSL Mode
Select...
Collection Name*
users
Query Filter (JSON)
json
{"status": "active"}
Limit
100
Sort (JSON)
json
{"createdAt": -1}
Find Documents (
mongodb_query)Execute find operation on MongoDB collection
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
host | string | Yes | MongoDB server hostname or IP address |
port | number | Yes | MongoDB server port (default: 27017) |
database | string | Yes | Database name to connect to |
username | string | No | MongoDB username |
password | string | No | MongoDB password |
authSource | string | No | Authentication database |
ssl | string | No | SSL connection mode (disabled, required, preferred) |
collection | string | Yes | Collection name to query |
query | string | No | MongoDB query filter as JSON string |
limit | number | No | Maximum number of documents to return |
sort | string | No | Sort criteria as JSON string |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | Operation status message |
documents | array | Array of documents returned from the query |
Insert Documents
Operation
Insert Documents
Host*
localhost or your.mongodb.host
Port*
27017
Database Name*
your_database
Username*
mongodb_user
Password*
••••••••
Auth Source
admin
SSL Mode
Select...
Collection Name*
users
Documents (JSON Array)*
json
[{"name": "John Doe", "email": "john@example.com", "status": "active"}]
Insert Documents (
mongodb_insert)Insert documents into MongoDB collection
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
host | string | Yes | MongoDB server hostname or IP address |
port | number | Yes | MongoDB server port (default: 27017) |
database | string | Yes | Database name to connect to |
username | string | No | MongoDB username |
password | string | No | MongoDB password |
authSource | string | No | Authentication database |
ssl | string | No | SSL connection mode (disabled, required, preferred) |
collection | string | Yes | Collection name to insert into |
documents | array | Yes | Array of documents to insert |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | Operation status message |
documentCount | number | Number of documents inserted |
insertedId | string | ID of inserted document (single insert) |
Update Documents
Operation
Update Documents
Host*
localhost or your.mongodb.host
Port*
27017
Database Name*
your_database
Username*
mongodb_user
Password*
••••••••
Auth Source
admin
SSL Mode
Select...
Collection Name*
users
Filter (JSON)*
json
{"name": "Alice Test"}
Update (JSON)*
json
{"$set": {"name": "Jane Doe", "email": "jane@example.com"}}
Upsert
Select...
Update Multiple
Select...
Update Documents (
mongodb_update)Update documents in MongoDB collection
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
host | string | Yes | MongoDB server hostname or IP address |
port | number | Yes | MongoDB server port (default: 27017) |
database | string | Yes | Database name to connect to |
username | string | No | MongoDB username |
password | string | No | MongoDB password |
authSource | string | No | Authentication database |
ssl | string | No | SSL connection mode (disabled, required, preferred) |
collection | string | Yes | Collection name to update |
filter | string | Yes | Filter criteria as JSON string |
update | string | Yes | Update operations as JSON string |
upsert | boolean | No | Create document if not found |
multi | boolean | No | Update multiple documents |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | Operation status message |
matchedCount | number | Number of documents matched by filter |
modifiedCount | number | Number of documents modified |
documentCount | number | Total number of documents affected |
Delete Documents
Operation
Delete Documents
Host*
localhost or your.mongodb.host
Port*
27017
Database Name*
your_database
Username*
mongodb_user
Password*
••••••••
Auth Source
admin
SSL Mode
Select...
Collection Name*
users
Filter (JSON)*
json
{"status": "inactive"}
Delete Multiple
Select...
Delete Documents (
mongodb_delete)Delete documents from MongoDB collection
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
host | string | Yes | MongoDB server hostname or IP address |
port | number | Yes | MongoDB server port (default: 27017) |
database | string | Yes | Database name to connect to |
username | string | No | MongoDB username |
password | string | No | MongoDB password |
authSource | string | No | Authentication database |
ssl | string | No | SSL connection mode (disabled, required, preferred) |
collection | string | Yes | Collection name to delete from |
filter | string | Yes | Filter criteria as JSON string |
multi | boolean | No | Delete multiple documents |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | Operation status message |
deletedCount | number | Number of documents deleted |
Aggregate Pipeline
Operation
Aggregate Pipeline
Host*
localhost or your.mongodb.host
Port*
27017
Database Name*
your_database
Username*
mongodb_user
Password*
••••••••
Auth Source
admin
SSL Mode
Select...
Collection Name*
users
Aggregation Pipeline (JSON Array)*
json
[{"$group": {"_id": "$status", "count": {"$sum": 1}}}]
Aggregate Pipeline (
mongodb_execute)Execute MongoDB aggregation pipeline
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
host | string | Yes | MongoDB server hostname or IP address |
port | number | Yes | MongoDB server port (default: 27017) |
database | string | Yes | Database name to connect to |
username | string | No | MongoDB username |
password | string | No | MongoDB password |
authSource | string | No | Authentication database |
ssl | string | No | SSL connection mode (disabled, required, preferred) |
collection | string | Yes | Collection name to execute pipeline on |
pipeline | string | Yes | Aggregation pipeline as JSON string |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | Operation status message |
documents | array | Array of documents returned from aggregation |
Usage Instructions
Integrate MongoDB into the workflow. Can find, insert, update, delete, and aggregate data.
Notes
- Category:
tools - Type:
mongodb