Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-245

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

    XMLWordPrintable

    Details

    • 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:
      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.

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikep Michael Pizzo
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: