[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Updated: (ODATA-32) Allow filtering of expanded to-many navigation properties
[ http://tools.oasis-open.org/issues/browse/ODATA-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ralf Handl updated ODATA-32: ---------------------------- Proposal: Allow adding filter expressions to expand clauses: GET ~/PurchaseOrders?$filter=Status eq 'OPEN'&$expand=Items($filter=WeightInKg gt 5000) Using parentheses optically attaches the filter to the navigation path and allows adding other system query options like $orderby or $top. was: Allow adding "?$filter=<filter expression>" to expand clauses: GET ~/PurchaseOrders?$filter=Status eq 'OPEN'&$expand=Items?$filter=WeightInKg gt 5000 Note that the question mark is an allowed character in the query portion of a URI; only its first occurence in the URI is special. > 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]