Connectors
Databases & Data Warehouses
MongoDB
Document database: find, insert, update, and aggregate JSON-like documents
MongoDB documentationAPI checked August 18, 2026
- Signs in with
- Connection details
- Runs on
- Cloud or On-Prem Worker
- Operations
- 20
- Ready-made triggers
- 0
Connect MongoDB
- In Neblex open Connect › Connections and click New Connection.
- Search for MongoDB and give the connection a clear name.
- Fill in the fields. Secret values are encrypted and never shown again.
- Click Test, then Create Connection.
If the system is only reachable inside your network, choose an On-Prem Worker under Test from and run the flow on that Worker. See On-Prem Workers.
| Field | What to enter |
|---|---|
| Connection setupRequired | |
| HostRequired | |
| PortOptional | Example: 27017 |
| DatabaseRequired | |
| UsernameOptional | |
| PasswordOptionalSecret | |
| Use TLSOptional | Turning this off sends traffic and credentials without transport encryption. Use plaintext only for a customer-controlled endpoint that explicitly requires it. |
| Connection stringRequiredSecret | Paste a mongodb:// or mongodb+srv:// connection string. Only the guarded runtime's allow-listed URI options are accepted. |
Use it in a flow
- Open a flow, open the node library and search for MongoDB.
- Drag it onto the canvas and choose an Operation and your connection.
- Map the operation's fields from earlier steps, or click Map with Matt.
- Use Test this step to see what it returns, then save.
To start a flow from MongoDB without a ready-made trigger: a Poll for changes trigger on MongoDB with your own query passes on new or changed records.
Operations
20 operations in 4 groups. Each one is a step you can add to a flow.
Admin7
Create a collectioncreateCollection | Create a new collection. | |
Create an indexcreateIndex | Create an index from a keys document. | |
Drop a collectiondropCollection | Delete a collection and all its documents. | |
Drop an indexdropIndex | Remove an index by name. | |
List collectionslistCollections | The collection names in the database. | |
List indexeslistIndexes | The indexes on a collection. | |
Run a database commandrunCommand | Run any MongoDB database command (the arbitrary escape hatch). |
Connection1
Test MongoDBping | Run the server ping command against the configured database. |
Read5
Count documentscountDocuments | The number of documents matching the filter. | |
Distinct valuesdistinct | The distinct values of a field across matching documents. | |
Find documentsfind | Query a collection; each matching document becomes one record. | |
Find one documentfindOne | The first document matching the filter, or nothing. | |
Run an aggregationaggregate | Run an aggregation pipeline; each result document becomes one record. |
Write7
Delete many documentsdeleteMany | Delete every matching document. | |
Delete one documentdeleteOne | Delete the first matching document. | |
Insert a documentinsertOne | Insert one document; returns its inserted id. | |
Insert many documentsinsertMany | Insert a JSON array of documents. | |
Replace a documentreplaceOne | Replace the first matching document wholesale. | |
Update many documentsupdateMany | Apply an update to every matching document. | |
Update one documentupdateOne | Apply an update to the first matching document. |