{
 "name": "[노드 한 장] No Operation · 가상 상품 3개 그대로 통과",
 "nodes": [
  {
   "id": "manual",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "input",
   "name": "Create fictional products",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    240,
    0
   ],
   "parameters": {
    "jsCode": "// Directly authored fictional sample products, no personal data.\nreturn [{\"sample\":true,\"id\":\"SAMPLE-01\",\"product\":\"가상 키링\",\"price\":5000,\"stock\":12,\"options\":{\"color\":\"초록\",\"gift\":false}},{\"sample\":true,\"id\":\"SAMPLE-02\",\"product\":\"가상 컵\",\"price\":12000,\"stock\":0,\"options\":{\"color\":\"파랑\",\"gift\":true}},{\"sample\":true,\"id\":\"SAMPLE-03\",\"product\":\"가상 노트\",\"price\":3000,\"stock\":7,\"options\":{\"color\":\"노랑\",\"gift\":false}}].map(json=>({json}));"
   }
  },
  {
   "id": "noop",
   "name": "No Operation, do nothing",
   "type": "n8n-nodes-base.noOp",
   "typeVersion": 1,
   "position": [
    480,
    0
   ],
   "parameters": {}
  },
  {
   "id": "verify",
   "name": "Verify unchanged in Code",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    720,
    0
   ],
   "parameters": {
    "jsCode": "// This Code performs verification. No Operation does not compare or calculate.\nconst before=$('Create fictional products').all().map(i=>i.json);\nconst after=$input.all().map(i=>i.json);\nconst same_item_order=JSON.stringify(before.map(x=>x.id))===JSON.stringify(after.map(x=>x.id));\nconst same_all_json_values=before.length===after.length&&before.every(b=>{const a=after.find(a=>a.id===b.id);return !!a&&JSON.stringify(a)===JSON.stringify(b)});\nconst same_full_json_sequence=JSON.stringify(before)===JSON.stringify(after);\nreturn [{json:{sample:true,items_before:before.length,items_after:after.length,same_item_order,same_all_json_values,same_full_json_sequence,scope:'이 샘플 3개 JSON 값과 item 순서 비교 · 검증은 뒤 Code가 수행'}}];"
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Create fictional products",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Create fictional products": {
   "main": [
    [
     {
      "node": "No Operation, do nothing",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "No Operation, do nothing": {
   "main": [
    [
     {
      "node": "Verify unchanged in Code",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}