Replies: 1 comment
-
I've moved this to discussions, because it's not a bug. Have you searched previous questions / seen this? I think it should answer your question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please help solve this issue
I have tried a lot to create a one-to-one or one-to-many relationship between table2 -> table1
, but I did not succeed in finding a solution. The example is as follows
Table1
id , name
1 , name
2 , name
3 , name
================
Table2
id , name , options (json)
1 , name { "table1": { "ids": ["1", "2"] } }
2 , name { "table1": { "ids": ["3", "1"] } }
https://github.com/staudenmeir/eloquent-json-relations#many-to-many-relationships
What I want is something similar, how can I create this kind of relation with Objection.js?
Beta Was this translation helpful? Give feedback.
All reactions