Skip to content

Commit fb061b4

Browse files
committed
Fix edge types
1 parent ae79cdb commit fb061b4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/config/databases/ecommerce/edges.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@
5353
"sourceKey": "id",
5454
"target": "returns",
5555
"targetKey": "cart_id",
56-
"relation": "hasOne"
56+
"relation": "hasMany"
5757
},
5858
{
5959
"source": "items",
6060
"sourceKey": "id",
6161
"target": "returns",
6262
"targetKey": "item_id",
63-
"relation": "hasOne"
63+
"relation": "hasMany"
6464
},
6565
{
6666
"source": "carts",
@@ -74,6 +74,6 @@
7474
"sourceKey": "code",
7575
"target": "purchases",
7676
"targetKey": "discount_code",
77-
"relation": "hasOne"
77+
"relation": "hasMany"
7878
}
7979
]

src/config/databases/live/edges.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"sourceKey": "id",
1919
"target": "trials",
2020
"targetKey": "user_id",
21-
"relation": "hasMany"
21+
"relation": "hasOne"
2222
},
2323
{
2424
"source": "products",

0 commit comments

Comments
 (0)