[ https://issues.oasis-open.org/browse/ODATA-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralf Handl updated ODATA-1105:
------------------------------
Proposal:
Harmonize syntax for complex properties within $select with syntax for navigation properties within $expand:
- collection-valued complex property can be followed by /$count to select the count of the collection
- /$count segment can be followed by parentheses containing $filter or $search to count only matching members of the collection
- complex property can be followed by parentheses containing
- $select with same recursive syntax
- $compute to place computed properties within the complex type
- for collection-valued complex properties also $filter, $search, $count, $orderby, $skip, and $top
Extended $select syntax also allowed for $select nested within $expand.
Do not allow $expand nested in $select.
was:
Harmonize syntax for complex properties within $select with syntax for navigation properties within $expand:
- collection-valued complex property can be followed by /$count to select the count of the collection
- /$count segment can be followed by parentheses containing $filter or $search to count only matching members of the collection
- complex property can be followed by parentheses containing
- $select with same recursive syntax
- $compute to place computed properties within the complex type
- for collection-valued complex properties also $filter, $count, $orderby, $skip, and $top
Extended $select syntax also allowed for $select nested within $expand.
Do not allow $expand nested in $select.
> Simplify selection of properties of complex type
> ------------------------------------------------
>
> Key: ODATA-1105
> URL: https://issues.oasis-open.org/browse/ODATA-1105
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: Bug
> Components: URL Conventions
> Affects Versions: V4.01_CSD02
> Environment: Proposed
> Reporter: Michael Pizzo
> Fix For: V4.01_CS01
>
>
> Currently, properties of complex types are individually selected, as in:
> $select=Name,Address/City,Address/State,Address/Zip
> We could simplify the syntax for selecting individual properties of a complex type, similar to expand options. Something like:
> $select=Name, Address($select=City,State,Zip)
> or
> $select=Name, Address(City,State,Zip)
> The first syntax would support adding the ability, for example, to $filter or $sort a collection of complex types.
> We could put $compute (or an inline expression) in the $select in as a scoped value (couldn't be used in filter/sort).
> Putting $expand in $select brings in all the issues of combining $expand and $select and results in two ways of doing expand.
--
This message was sent by Atlassian JIRA
(v6.2.2#6258)