AutomationFlowsData & Sheets › Insert Document into MongoDB

Insert Document into MongoDB

Original n8n title: Insert a Document in Mongodb

Insert A Document In Mongodb. Uses manualTrigger, mongoDb. Event-driven trigger; 3 nodes.

Event trigger★☆☆☆☆ complexity3 nodesMongoDB
Data & Sheets Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        220,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "position": [
        420,
        320
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "my_key",
              "value": "my_value"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "name": "MongoDB",
      "type": "n8n-nodes-base.mongoDb",
      "position": [
        620,
        320
      ],
      "parameters": {
        "fields": "my_key",
        "operation": "insert",
        "collection": "n8n-collection"
      },
      "credentials": {
        "mongoDb": "<your credential>"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Set": {
      "main": [
        [
          {
            "node": "MongoDB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Insert A Document In Mongodb. Uses manualTrigger, mongoDb. Event-driven trigger; 3 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

MongoDB. Uses mongoDb. Event-driven trigger; 2 nodes.

MongoDB
Data & Sheets

This n8n template provides a production-ready, memory-safe pipeline for ingesting large Hugging Face datasets into MongoDB using batch pagination. It is designed as a reusable data ingestion layer for

Execute Workflow Trigger, HTTP Request, MongoDB
Data & Sheets

This n8n workflow securely processes contact form submissions by validating user input, formatting the data, and storing it in a MongoDB database. The flow ensures data consistency, prevents unsafe en

Form Trigger, MongoDB, Form
Data & Sheets

My Workflow. Uses start, mongoDb, httpRequest, localFileTrigger. Event-driven trigger; 7 nodes.

Start, MongoDB, HTTP Request +1
Data & Sheets

Fluxo 1. Uses mongoDb, readWriteFile. Event-driven trigger; 5 nodes.

MongoDB, Read Write File