Reputation: 10792
I have a self-referencing entity, and I need to $expand=Other on each level.
Expected result:
{
Id: 1,
Other: {...},
Children: [
{
Id: 2,
Other: {...},
Children: [...]
}
],
...
}
But I can't figure out how to write the query.
/odata/Entities/$expand=Children($levels=max),Other
yields
{
Id: 1,
Other: {...},
Children: [
{
Id: 2,
Children: [...]
}
],
...
}
The child (Id: 2) is missing Other.
Upvotes: 2
Views: 1377
Reputation: 10792
Here you go
/odata/Entities/$expand=Children($levels=max;$expand=Other),Other
Upvotes: 3