MongoDB
Description
Section titled “Description”The MongoDB node runs operations on a MongoDB database. It is the equivalent of n8n’s MongoDB node, so imported flows that used it are mapped to this node (no longer left as a placeholder).
Configuration
Section titled “Configuration”| Parameter | Type | Required | Description |
|---|---|---|---|
| connectionString | text | No | Full connection string (mongodb://user:pass@host:27017/db). If set, host/port/credentials are ignored |
| host / port | text | No | Host and port (default 127.0.0.1:27017) |
| database | text | No | Database |
| user / password | text | No | Credentials |
| collection | text | Yes | Collection to operate on |
| operation | select | Yes | find, findOne, insert, update, delete, aggregate, count |
| query | textarea (JSON) | No | Filter for find/update/delete/count; pipeline for aggregate |
| documents | textarea (JSON) | No | Document(s) to insert (object or array) |
| update | textarea (JSON) | No | Update ({ "$set": {...} }; a plain object is wrapped in $set) |
| limit | number | No | Result limit (find) |
Output
Section titled “Output”{ "nextModule": "next_module", "data": { "result": [ /* documents or operation result */ ] } }- Supports dynamic variables
{{variable}}in all fields. - The connection is closed automatically when done.
- When importing from n8n, the connection is left empty (credentials live outside n8n’s JSON): fill it in after importing.