[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-1284) Allow referencing properties of "outer" entity in expressions nested within $expand
Ralf Handl created ODATA-1284: --------------------------------- Summary: Allow referencing properties of "outer" entity in expressions nested within $expand Key: ODATA-1284 URL: https://issues.oasis-open.org/browse/ODATA-1284 Project: OASIS Open Data Protocol (OData) TC Issue Type: Improvement Components: URL Conventions Affects Versions: V4.01_CS01 Environment: Proposed Reporter: Ralf Handl Fix For: V4.01_CS02 Expressions in query options nested within $expand already can reference the instance identified by the resource path via the symbolic literal $it. What's missing is in case of multiple nesting levels of $expand to reference the "next outer" instance. Artificial example: expand all Bars that have the same Baz as the current instance of Foo {code} GET Foo?$expand=Bar($filter=Baz eq $it/Baz) {code} What if I want to do this one level down: expand all Bazes that have the same Qux as the current expanded Bar's Qux {code} GET Foo?$expand=Bar($expand=Baz($filter=Qux eq $up/Qux)) {code} Note: $up is basically the {{..}} operator in Unix file systems. -- This message was sent by Atlassian JIRA (v7.7.2#77003)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]