{
  "author": "Voodflow",
  "license": "MIT",
  "description": "Aggregate: Group orders by status with sum/count/avg",
  "version": "1.0.0",
  "nodes": [
    {
      "id": "dummy_data_node-agg-ex-001",
      "type": "dummy_data_node",
      "position": { "x": -600, "y": -50 },
      "data": {
        "label": "Orders",
        "description": "Sample order data",
        "data_type": "json",
        "content": "{\n  \"data\": [\n    { \"id\": 1, \"status\": \"completed\", \"total\": 120.50 },\n    { \"id\": 2, \"status\": \"pending\", \"total\": 45.00 },\n    { \"id\": 3, \"status\": \"completed\", \"total\": 230.00 },\n    { \"id\": 4, \"status\": \"cancelled\", \"total\": 89.99 },\n    { \"id\": 5, \"status\": \"completed\", \"total\": 55.00 },\n    { \"id\": 6, \"status\": \"pending\", \"total\": 310.00 }\n  ]\n}",
        "icon": "heroicon-o-document-arrow-down",
        "iconType": "heroicon",
        "color": "emerald",
        "display_name": "Dummy Data",
        "isNew": true,
        "isExpanded": true,
        "positioning": { "input": false, "output": true },
        "config": {
          "label": "Orders",
          "data_type": "json",
          "content": "{\n  \"data\": [\n    { \"id\": 1, \"status\": \"completed\", \"total\": 120.50 },\n    { \"id\": 2, \"status\": \"pending\", \"total\": 45.00 },\n    { \"id\": 3, \"status\": \"completed\", \"total\": 230.00 },\n    { \"id\": 4, \"status\": \"cancelled\", \"total\": 89.99 },\n    { \"id\": 5, \"status\": \"completed\", \"total\": 55.00 },\n    { \"id\": 6, \"status\": \"pending\", \"total\": 310.00 }\n  ]\n}",
          "positioning": { "input": false, "output": true },
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 450 }
    },
    {
      "id": "aggregate-agg-ex-002",
      "type": "aggregate",
      "position": { "x": 0, "y": -50 },
      "data": {
        "label": "Sales Report",
        "description": "Group by status, sum and count",
        "array_path": "data",
        "group_by": "status",
        "aggregations": [
          { "field": "total", "operation": "sum", "alias": "total_revenue" },
          { "field": "id", "operation": "count", "alias": "order_count" },
          { "field": "total", "operation": "avg", "alias": "avg_order" }
        ],
        "icon": "heroicon-o-circle-stack",
        "iconType": "heroicon",
        "color": "emerald",
        "display_name": "Aggregate",
        "isNew": true,
        "isExpanded": true,
        "config": {
          "label": "Sales Report",
          "description": "Group by status, sum and count",
          "array_path": "data",
          "group_by": "status",
          "aggregations": [
            { "field": "total", "operation": "sum", "alias": "total_revenue" },
            { "field": "id", "operation": "count", "alias": "order_count" },
            { "field": "total", "operation": "avg", "alias": "avg_order" }
          ],
          "isExpanded": true
        }
      },
      "measured": { "width": 500, "height": 400 }
    },
    {
      "id": "data_viewer_node-agg-ex-003",
      "type": "data_viewer_node",
      "position": { "x": 650, "y": -50 },
      "data": {
        "label": "Report Result",
        "description": "Aggregated sales data",
        "view_mode": "auto",
        "icon": "heroicon-o-table-cells",
        "iconType": "heroicon",
        "color": "slate",
        "display_name": "Data Viewer",
        "isNew": true,
        "config": { "label": "Report Result", "description": "Aggregated sales data", "view_mode": "auto" }
      },
      "measured": { "width": 450, "height": 300 }
    }
  ],
  "edges": [
    {
      "id": "edge-dummy-to-agg",
      "source": "dummy_data_node-agg-ex-001",
      "target": "aggregate-agg-ex-002",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-agg-to-viewer",
      "source": "aggregate-agg-ex-002",
      "target": "data_viewer_node-agg-ex-003",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    }
  ],
  "viewport": { "x": 700, "y": 300, "zoom": 0.8 },
  "exportedAt": "2026-03-31T18:00:00.000Z",
  "voodflowVersion": "1.0.0"
}
