{
  "graph": {
    "name": "",
    "isFolderOnly": false,
    "ast": {
      "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,0:0:0-11:0:99",
      "nodes": [
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,0:0:0-3:1:29",
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,0:0:0-0:1:1",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,0:0:0-0:1:1",
                    "value": [
                      {
                        "string": "x",
                        "raw_string": "x"
                      }
                    ]
                  }
                }
              ]
            },
            "primary": {},
            "value": {
              "map": {
                "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,0:3:3-3:1:29",
                "nodes": [
                  {
                    "map_key": {
                      "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,1:2:7-1:18:23",
                      "key": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,1:2:7-1:7:12",
                        "path": [
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,1:2:7-1:7:12",
                              "value": [
                                {
                                  "string": "shape",
                                  "raw_string": "shape"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "primary": {},
                      "value": {
                        "unquoted_string": {
                          "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,1:9:14-1:18:23",
                          "value": [
                            {
                              "string": "sql_table",
                              "raw_string": "sql_table"
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "map_key": {
                      "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,2:2:26-2:3:27",
                      "key": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,2:2:26-2:3:27",
                        "path": [
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,2:2:26-2:3:27",
                              "value": [
                                {
                                  "string": "y",
                                  "raw_string": "y"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "primary": {},
                      "value": {}
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,4:0:30-7:1:59",
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,4:0:30-4:1:31",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,4:0:30-4:1:31",
                    "value": [
                      {
                        "string": "a",
                        "raw_string": "a"
                      }
                    ]
                  }
                }
              ]
            },
            "primary": {},
            "value": {
              "map": {
                "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,4:3:33-7:1:59",
                "nodes": [
                  {
                    "map_key": {
                      "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,5:2:37-5:18:53",
                      "key": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,5:2:37-5:7:42",
                        "path": [
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,5:2:37-5:7:42",
                              "value": [
                                {
                                  "string": "shape",
                                  "raw_string": "shape"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "primary": {},
                      "value": {
                        "unquoted_string": {
                          "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,5:9:44-5:18:53",
                          "value": [
                            {
                              "string": "sql_table",
                              "raw_string": "sql_table"
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "map_key": {
                      "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,6:2:56-6:3:57",
                      "key": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,6:2:56-6:3:57",
                        "path": [
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,6:2:56-6:3:57",
                              "value": [
                                {
                                  "string": "b",
                                  "raw_string": "b"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "primary": {},
                      "value": {}
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:0:60-10:1:98",
            "edges": [
              {
                "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:0:60-8:10:70",
                "src": {
                  "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:0:60-8:3:63",
                  "path": [
                    {
                      "unquoted_string": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:0:60-8:1:61",
                        "value": [
                          {
                            "string": "x",
                            "raw_string": "x"
                          }
                        ]
                      }
                    },
                    {
                      "unquoted_string": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:2:62-8:3:63",
                        "value": [
                          {
                            "string": "y",
                            "raw_string": "y"
                          }
                        ]
                      }
                    }
                  ]
                },
                "src_arrow": "",
                "dst": {
                  "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:7:67-8:10:70",
                  "path": [
                    {
                      "unquoted_string": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:7:67-8:8:68",
                        "value": [
                          {
                            "string": "a",
                            "raw_string": "a"
                          }
                        ]
                      }
                    },
                    {
                      "unquoted_string": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:9:69-8:10:70",
                        "value": [
                          {
                            "string": "b",
                            "raw_string": "b"
                          }
                        ]
                      }
                    }
                  ]
                },
                "dst_arrow": ">"
              }
            ],
            "primary": {},
            "value": {
              "map": {
                "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:12:72-10:1:98",
                "nodes": [
                  {
                    "map_key": {
                      "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,9:2:76-9:22:96",
                      "key": {
                        "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,9:2:76-9:16:90",
                        "path": [
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,9:2:76-9:7:81",
                              "value": [
                                {
                                  "string": "style",
                                  "raw_string": "style"
                                }
                              ]
                            }
                          },
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,9:8:82-9:16:90",
                              "value": [
                                {
                                  "string": "animated",
                                  "raw_string": "animated"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "primary": {},
                      "value": {
                        "boolean": {
                          "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,9:18:92-9:22:96",
                          "value": true
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      ]
    },
    "root": {
      "id": "",
      "id_val": "",
      "attributes": {
        "label": {
          "value": ""
        },
        "labelDimensions": {
          "width": 0,
          "height": 0
        },
        "style": {},
        "iconStyle": {},
        "near_key": null,
        "shape": {
          "value": ""
        },
        "direction": {
          "value": ""
        },
        "constraint": null
      },
      "zIndex": 0
    },
    "edges": [
      {
        "index": 0,
        "srcTableColumnIndex": 0,
        "dstTableColumnIndex": 0,
        "isCurve": false,
        "src_arrow": false,
        "dst_arrow": true,
        "references": [
          {
            "map_key_edge_index": 0
          }
        ],
        "attributes": {
          "label": {
            "value": ""
          },
          "labelDimensions": {
            "width": 0,
            "height": 0
          },
          "style": {
            "animated": {
              "value": "true"
            }
          },
          "iconStyle": {},
          "near_key": null,
          "shape": {
            "value": ""
          },
          "direction": {
            "value": ""
          },
          "constraint": null
        },
        "zIndex": 0
      }
    ],
    "objects": [
      {
        "id": "x",
        "id_val": "x",
        "references": [
          {
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,0:0:0-0:1:1",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,0:0:0-0:1:1",
                    "value": [
                      {
                        "string": "x",
                        "raw_string": "x"
                      }
                    ]
                  }
                }
              ]
            },
            "key_path_index": 0,
            "map_key_edge_index": -1
          },
          {
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:0:60-8:3:63",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:0:60-8:1:61",
                    "value": [
                      {
                        "string": "x",
                        "raw_string": "x"
                      }
                    ]
                  }
                },
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:2:62-8:3:63",
                    "value": [
                      {
                        "string": "y",
                        "raw_string": "y"
                      }
                    ]
                  }
                }
              ]
            },
            "key_path_index": 0,
            "map_key_edge_index": 0
          }
        ],
        "sql_table": {
          "columns": [
            {
              "name": {
                "label": "y",
                "fontSize": 0,
                "fontFamily": "",
                "language": "",
                "color": "",
                "italic": false,
                "bold": false,
                "underline": false,
                "labelWidth": 0,
                "labelHeight": 0
              },
              "type": {
                "label": "",
                "fontSize": 0,
                "fontFamily": "",
                "language": "",
                "color": "",
                "italic": false,
                "bold": false,
                "underline": false,
                "labelWidth": 0,
                "labelHeight": 0
              },
              "constraint": null,
              "reference": ""
            }
          ]
        },
        "attributes": {
          "label": {
            "value": "x"
          },
          "labelDimensions": {
            "width": 0,
            "height": 0
          },
          "style": {},
          "iconStyle": {},
          "near_key": null,
          "shape": {
            "value": "sql_table"
          },
          "direction": {
            "value": ""
          },
          "constraint": null
        },
        "zIndex": 0
      },
      {
        "id": "a",
        "id_val": "a",
        "references": [
          {
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,4:0:30-4:1:31",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,4:0:30-4:1:31",
                    "value": [
                      {
                        "string": "a",
                        "raw_string": "a"
                      }
                    ]
                  }
                }
              ]
            },
            "key_path_index": 0,
            "map_key_edge_index": -1
          },
          {
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:7:67-8:10:70",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:7:67-8:8:68",
                    "value": [
                      {
                        "string": "a",
                        "raw_string": "a"
                      }
                    ]
                  }
                },
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/table_connection_attr.d2,8:9:69-8:10:70",
                    "value": [
                      {
                        "string": "b",
                        "raw_string": "b"
                      }
                    ]
                  }
                }
              ]
            },
            "key_path_index": 0,
            "map_key_edge_index": 0
          }
        ],
        "sql_table": {
          "columns": [
            {
              "name": {
                "label": "b",
                "fontSize": 0,
                "fontFamily": "",
                "language": "",
                "color": "",
                "italic": false,
                "bold": false,
                "underline": false,
                "labelWidth": 0,
                "labelHeight": 0
              },
              "type": {
                "label": "",
                "fontSize": 0,
                "fontFamily": "",
                "language": "",
                "color": "",
                "italic": false,
                "bold": false,
                "underline": false,
                "labelWidth": 0,
                "labelHeight": 0
              },
              "constraint": null,
              "reference": ""
            }
          ]
        },
        "attributes": {
          "label": {
            "value": "a"
          },
          "labelDimensions": {
            "width": 0,
            "height": 0
          },
          "style": {},
          "iconStyle": {},
          "near_key": null,
          "shape": {
            "value": "sql_table"
          },
          "direction": {
            "value": ""
          },
          "constraint": null
        },
        "zIndex": 0
      }
    ]
  },
  "err": null
}
