any() and all() are missing from Core Part I/Protocol and Core Part 2/URL Conventions

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • V4.0_WD01
    • Affects Version/s: V4.0_WD01
    • Component/s: URL Conventions
    • None
    • Environment:

      [Closed]

    • Hide

      Add any() and all() to the list of canonical functions, describe and provide examples of their usage.

      Show
      Add any() and all() to the list of canonical functions, describe and provide examples of their usage.

      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.

            Assignee:
            Unassigned
            Reporter:
            Michael Pizzo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: