[ http://tools.oasis-open.org/issues/browse/ODATA-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31405#action_31405 ]
Ralf Handl commented on ODATA-32:
---------------------------------
An alternative would be to extend only $filter by allowing a comma-separated list of boolean expression where the first applies to the base set and the following are prefixed with the navigation path they apply to:
GET ~/PurchaseOrders?$filter=Status eq 'OPEN',Items(WeightInKg gt 5000),Items/ScheduleLines(not Shipped)
> Allow filtering of expanded to-many navigation properties
> ---------------------------------------------------------
>
> Key: ODATA-32
> URL: http://tools.oasis-open.org/issues/browse/ODATA-32
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: New Feature
> Components: OData Protocol v1.0, OData URL Conventions v1.0
> Affects Versions: WD01
> Environment: [Proposed]
> Reporter: Ralf Handl
> Fix For: WD01
>
>
> "Give me all open purchase orders and expand all items that have a weight of over five tons"
> This cannot be expressed as a query on the items if these are contained in the orders.
> Even if the items are not contained, the reformulation as a query on items expanding the order would repeat the included order entities in case of multiple matching items, which is undesirable.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira