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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -