How to access linked object attributes to define a constraint in EdgeDB SDL? #4011
Unanswered
aarandamendoza
asked this question in
Q&A
Replies: 0 comments
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.
-
0
Hi there,
I'd like to create a constraint in an object's link that can check one or more attributes of the linked object to validate the relationship.
i.e. assign the ownership of a credit card to a person, but only if the person is 18 or older:
Adding a multi link credit_cards attribute to the Person object won't be a valid workaround for me in this case.
Beta Was this translation helpful? Give feedback.
All reactions