"jsCode":"// Loop over input items and add a new field\n// called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n item.json.myNewField = 1;\n error\n}\n\nreturn $input.all();"
},
"id":"d0ab7e12-0e1b-4c08-8081-83107794f37d",
"name":"Error",
"type":"n8n-nodes-base.code",
"typeVersion":1,
"position":[
680,
460
],
"disabled":true
},
{
"parameters":{},
"id":"f5026145-66c1-463c-8ac8-46a1309a6632",
"name":"On clicking 'execute'",
"type":"n8n-nodes-base.manualTrigger",
"typeVersion":1,
"position":[
460,
460
]
},
{
"parameters":{
"jsCode":"// Loop over input items and add a new field\n// called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n item.json.myNewField = 1;\n}\n\nreturn $input.all();"