{ "graph": { "name": "", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,0:0:0-13:0:123", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,0:0:0-4:1:48", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,0:0:0-0:3:3", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,0:0:0-0:3:3", "value": [ { "string": "src", "raw_string": "src" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,0:5:5-4:0:47", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,1:1:8-1:17:24", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,1:1:8-1:6:13", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,1:1:8-1:6:13", "value": [ { "string": "shape", "raw_string": "shape" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,1:8:15-1:17:24", "value": [ { "string": "sql_table", "raw_string": "sql_table" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,2:1:26-2:8:33", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,2:1:26-2:3:28", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,2:1:26-2:3:28", "value": [ { "string": "id", "raw_string": "id" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,2:5:30-2:8:33", "value": [ { "string": "int", "raw_string": "int" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,3:1:35-3:12:46", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,3:1:35-3:7:41", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,3:1:35-3:7:41", "value": [ { "string": "dst_id", "raw_string": "dst_id" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,3:9:43-3:12:46", "value": [ { "string": "int", "raw_string": "int" } ] } } } } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,6:0:50-10:1:99", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,6:0:50-6:3:53", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,6:0:50-6:3:53", "value": [ { "string": "dst", "raw_string": "dst" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,6:5:55-10:0:98", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,7:1:58-7:17:74", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,7:1:58-7:6:63", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,7:1:58-7:6:63", "value": [ { "string": "shape", "raw_string": "shape" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,7:8:65-7:17:74", "value": [ { "string": "sql_table", "raw_string": "sql_table" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,8:1:76-8:8:83", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,8:1:76-8:3:78", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,8:1:76-8:3:78", "value": [ { "string": "id", "raw_string": "id" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,8:5:80-8:8:83", "value": [ { "string": "int", "raw_string": "int" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,9:1:85-9:13:97", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,9:1:85-9:5:89", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,9:1:85-9:5:89", "value": [ { "string": "name", "raw_string": "name" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,9:7:91-9:13:97", "value": [ { "string": "string", "raw_string": "string" } ] } } } } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:0:101-12:21:122", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:0:101-12:21:122", "src": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:0:101-12:6:107", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:0:101-12:3:104", "value": [ { "string": "dst", "raw_string": "dst" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:4:105-12:6:107", "value": [ { "string": "id", "raw_string": "id" } ] } } ] }, "src_arrow": "<", "dst": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:11:112-12:21:122", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:11:112-12:14:115", "value": [ { "string": "src", "raw_string": "src" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:15:116-12:21:122", "value": [ { "string": "dst_id", "raw_string": "dst_id" } ] } } ] }, "dst_arrow": ">" } ], "primary": {}, "value": {} } } ] }, "root": { "id": "", "id_val": "", "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 }, "edges": [ { "index": 0, "srcTableColumnIndex": 0, "dstTableColumnIndex": 1, "isCurve": false, "src_arrow": true, "dst_arrow": true, "references": [ { "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 } ], "objects": [ { "id": "src", "id_val": "src", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,0:0:0-0:3:3", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,0:0:0-0:3:3", "value": [ { "string": "src", "raw_string": "src" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:11:112-12:21:122", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:11:112-12:14:115", "value": [ { "string": "src", "raw_string": "src" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:15:116-12:21:122", "value": [ { "string": "dst_id", "raw_string": "dst_id" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "sql_table": { "columns": [ { "name": { "label": "id", "fontSize": 0, "fontFamily": "", "language": "", "color": "", "italic": false, "bold": false, "underline": false, "labelWidth": 0, "labelHeight": 0 }, "type": { "label": "int", "fontSize": 0, "fontFamily": "", "language": "", "color": "", "italic": false, "bold": false, "underline": false, "labelWidth": 0, "labelHeight": 0 }, "constraint": "", "reference": "" }, { "name": { "label": "dst_id", "fontSize": 0, "fontFamily": "", "language": "", "color": "", "italic": false, "bold": false, "underline": false, "labelWidth": 0, "labelHeight": 0 }, "type": { "label": "int", "fontSize": 0, "fontFamily": "", "language": "", "color": "", "italic": false, "bold": false, "underline": false, "labelWidth": 0, "labelHeight": 0 }, "constraint": "", "reference": "" } ] }, "attributes": { "label": { "value": "src" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "sql_table" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 }, { "id": "dst", "id_val": "dst", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,6:0:50-6:3:53", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,6:0:50-6:3:53", "value": [ { "string": "dst", "raw_string": "dst" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:0:101-12:6:107", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:0:101-12:3:104", "value": [ { "string": "dst", "raw_string": "dst" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_column_index.d2,12:4:105-12:6:107", "value": [ { "string": "id", "raw_string": "id" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "sql_table": { "columns": [ { "name": { "label": "id", "fontSize": 0, "fontFamily": "", "language": "", "color": "", "italic": false, "bold": false, "underline": false, "labelWidth": 0, "labelHeight": 0 }, "type": { "label": "int", "fontSize": 0, "fontFamily": "", "language": "", "color": "", "italic": false, "bold": false, "underline": false, "labelWidth": 0, "labelHeight": 0 }, "constraint": "", "reference": "" }, { "name": { "label": "name", "fontSize": 0, "fontFamily": "", "language": "", "color": "", "italic": false, "bold": false, "underline": false, "labelWidth": 0, "labelHeight": 0 }, "type": { "label": "string", "fontSize": 0, "fontFamily": "", "language": "", "color": "", "italic": false, "bold": false, "underline": false, "labelWidth": 0, "labelHeight": 0 }, "constraint": "", "reference": "" } ] }, "attributes": { "label": { "value": "dst" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "sql_table" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 } ] }, "err": null }