AutomationFlowsData & Sheets › Mongodb Update

Mongodb Update

MongoDB Update. Uses executeWorkflowTrigger, mongoDb. Event-driven trigger; 3 nodes.

Event trigger★★★★☆ complexity3 nodesExecute Workflow TriggerMongoDB
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
{
  "name": "MongoDB Update",
  "nodes": [
    {
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "query",
              "type": "object"
            }
          ]
        }
      },
      "id": "c055762a-8fe7-4141-a639-df2372f30060",
      "typeVersion": 1.1,
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        260,
        480
      ]
    },
    {
      "parameters": {
        "operation": "update",
        "collection": "remit_recomm",
        "updateKey": "_id",
        "fields": "={{ Object.keys($json).join(\",\") }}",
        "upsert": true,
        "options": {}
      },
      "type": "n8n-nodes-base.mongoDb",
      "typeVersion": 1.1,
      "position": [
        700,
        480
      ],
      "id": "bf5b41b5-be98-4361-82d5-b3b5b610a060",
      "name": "MongoDB",
      "credentials": {
        "mongoDb": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nreturn $input.first().json.query;"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        480,
        480
      ],
      "id": "b3940801-6acf-406e-933b-965d52453a39",
      "name": "Code"
    }
  ],
  "connections": {
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "MongoDB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "915c8723-185d-435c-b876-bccafb7b6f5d",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "zf21qxfbQ2kJywnP",
  "tags": []
}

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

MongoDB Update. Uses executeWorkflowTrigger, mongoDb. Event-driven trigger; 3 nodes.

Source: https://github.com/ShaojieJiang/n8n-templates/blob/main/n8n_templates/remit_agent/MongoDB_Update.json — 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

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

Chat History Lookup. Uses executeWorkflowTrigger, mongoDb. Event-driven trigger; 4 nodes.

Execute Workflow Trigger, MongoDB
Data & Sheets

Reagendamiento_v2. Uses executeWorkflowTrigger, redis, httpRequest, n8n-nodes-evolution-api. Event-driven trigger; 89 nodes.

Execute Workflow Trigger, Redis, HTTP Request +3
Data & Sheets

Agendamiento_v2. Uses n8n-nodes-evolution-api, redis, httpRequest, executeWorkflowTrigger. Event-driven trigger; 59 nodes.

N8N Nodes Evolution Api, Redis, HTTP Request +3
Data & Sheets

Cancelacion_v2. Uses executeWorkflowTrigger, redis, httpRequest, n8n-nodes-evolution-api. Event-driven trigger; 46 nodes.

Execute Workflow Trigger, Redis, HTTP Request +3