Hi,
I know this question has been asked before, but this was some time ago plus I haven't found an acceptable answer in the old posts. So here I go:
Assuming I have a "belongs-to" relationship, how can I select the related entity, and have the result as a nested data structure.
Example:
(defentity department)
(defentity employee
(belongs-to department))
(select employee (with department))
Expected result:
{
:id 10
:name "John Smith"
:department {
:name "Customer Support"
:id 500
}
}
Thanks,
Razvan