feat: add folder support for workflows (fixes #70)
This commit is contained in:
41
workflows/Create/1125_Create.json
Normal file
41
workflows/Create/1125_Create.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"name": "Mock Data",
|
||||
"type": "n8n-nodes-base.function",
|
||||
"position": [
|
||||
802,
|
||||
307
|
||||
],
|
||||
"parameters": {
|
||||
"functionCode": "return [\n {\n json: {\n id: 1,\n name: \"Jim\"\n }\n },\n {\n json: {\n id: 2,\n name: \"Stefan\"\n }\n },\n {\n json: {\n id: 3,\n name: \"Hans\"\n }\n }\n];"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Create an array of objects",
|
||||
"type": "n8n-nodes-base.function",
|
||||
"position": [
|
||||
1052,
|
||||
307
|
||||
],
|
||||
"parameters": {
|
||||
"functionCode": "return [\n {\n json: {\n data_object: items.map(item => item.json),\n },\n }\n];\n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Mock Data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Create an array of objects",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user