Open vijayfractl opened 1 year ago
In case of multiple cardinality, would it make sense to reference an individual instance with one or more of the below forms:
:Company.WorksFor.Employee["<uuid>"].Email
:Company.WorksFor.Employee{:Name? "John Doe"}[0].Email
:Company.WorksFor.Employee{:where [:and [:= :Name "John Doe"] [:> :Age 20]]}[0].Email
E.g:
A new check should be added to the compiler - if
:Employee
contains an attribute called:WorksFor
- the relationship cannot be established.There's the question of supporting the path in reverse -
:Company.WorksFor.Employee.Email
- this can resolve to a list of emails - how to destructure it?Similar patterns should work for
:between
relationships:The syntax for the
:ReportsTo
relationship can be:between
paths can always return multiple results - so some de-structuring syntax maybe needed here,