Open jakent opened 1 year ago
to give an example with the test data, the following schema will fail with the same error:
{
"table": "user",
"columns": ["id", "name"],
"children": [
{
"table": "book",
"columns": ["isbn", "title", "description"],
"relationship": {
"variant": "object",
"type": "one_to_many",
"foreign_key": {
"parent": ["id"],
"child": ["buyer_id"],
},
},
"children": [
{
"table": "author",
"columns": ["id", "name"],
"label": "authors",
"relationship": {
"type": "one_to_many",
"variant": "object",
"through_tables": ["book_author"],
},
}
]
}
]
}
taking a look at this PR thanks
This works for me in the newest version 3.1.0
PGSync version:
2.5.0
Postgres version:
15.3
Elasticsearch version:
8.6.2
Redis version:
7.2
Python version:
3.8.9
Problem Description:
though_tables
does not work for grandchildren with arelationship
field.While it works as expected for direct child:
It doesn’t work, when I do the same for a grandchild:
Error Message (if any):