-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_WD01
-
Fix Version/s: V4.0_WD01
-
Component/s: URL Conventions
-
Labels:None
-
Environment:
[Closed]
-
Proposal:
any() and all() are popular functions for filtering a set based on membership of subcollections. These functions are part of the ABNF construction rules but are not described anywhere and do not appear in the list of canonical functions that can be used in $filter/$sort.
For example:
http://host/service.svc/Orders?$filter=OrderLines/any(ol: ol/Quantity gt 10)
returns Orders that have any Orderlines with a Quantity greater than 10.
and:
http://host/service.svc/Orders?$filter=OrderLines/all(ol: ol/Quantity gt 10)
returns Orders for which all Orderlines have a Quantity greater than 10.