Skip to content

MongoDB

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).

ParameterTypeRequiredDescription
connectionStringtextNoFull connection string (mongodb://user:pass@host:27017/db). If set, host/port/credentials are ignored
host / porttextNoHost and port (default 127.0.0.1:27017)
databasetextNoDatabase
user / passwordtextNoCredentials
collectiontextYesCollection to operate on
operationselectYesfind, findOne, insert, update, delete, aggregate, count
querytextarea (JSON)NoFilter for find/update/delete/count; pipeline for aggregate
documentstextarea (JSON)NoDocument(s) to insert (object or array)
updatetextarea (JSON)NoUpdate ({ "$set": {...} }; a plain object is wrapped in $set)
limitnumberNoResult limit (find)
{ "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.