-
edgedb version:
The error is not explaining why it is failing. Is this not a supported syntax? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can only have properties attached to links (https://www.edgedb.com/docs/datamodel/links#link-properties). Links themselves have to be part of object types. What are you trying to achieve with this "nested link" structure? One way to define a nested structure is:
Then you can query the nested structure like so:
Potentially you may want 2 different types, though:
|
Beta Was this translation helpful? Give feedback.
-
@vpetrovykh Thank you for the answer. The second solution is close to what I am looking for, here is my modified version.
Not optimal, but good enough. |
Beta Was this translation helpful? Give feedback.
@vpetrovykh Thank you for the answer.
The second solution is close to what I am looking for, here is my modified version.
Not optimal, but good enough.