OData also apply $expand in children on self-referencing entity -
i have self-referencing entity, , need $expand=other on each level.
expected result:
{ id: 1, other: {...}, children: [ { id: 2, other: {...}, children: [...] } ], ... }
but can't figure out how write query.
/odata/entities/$expand=children($levels=max),other
yields
{ id: 1, other: {...}, children: [ { id: 2, children: [...] } ], ... }
the child (id: 2) missing other.
here go
/odata/entities/$expand=children($levels=max;$expand=other),other
Comments
Post a Comment