AutomationFlowsData & Sheets › Insert A Document In Mongodb

Insert A Document In Mongodb

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

Event trigger★☆☆☆☆ complexity3 nodesMongo Db
Data & Sheets Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆

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.

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 →