Hi Team, I'm writing schema.json for my new api so...
# replication-troubleshooting
b
Hi Team, I'm writing schema.json for my new api source and sync to MySQL with basic normalization. Is it support nested array object that more than 3 layer ? When it sync to MySQL, the hash-id column can map first table and second table but not for second to third. My api response would be like:
Copy code
{
  "size": 0,
  "offset": 0,
  "stores": [
    {
      "id": "S0000",
      "name": "xxx shop",
      "foods": [
        {
          "food_id": "f12345",
          "food_nm": "Apple",
          "sold_out": true
        }
      ],
      "create_date": "2019-12-28",
      "update_date": "2023-02-23"
    },
    {
      "id": "S0001",
      "name": "yyy shop",
      "foods": [
        {
          "food_id": "f11111",
          "food_nm": "Banana",
          "sold_out": false
        }
      ],
      "create_date": "2012-01-22",
      "update_date": "2023-02-23"
    }
  ]
}
fixed, just declare another type array embedded