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

Introduce $this for referencing current item in $select/$expand options

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_CSD02
    • Fix Version/s: V4.01_CSD03
    • Component/s: ABNF, URL Conventions
    • Labels:
      None
    • Environment:

      [Proposed]

      Description

      In OData-1105 we introduced $select options which enabled filtering a collection of structural properties. Where the collection is a collection of complex types, you can now do something like:

      Customers?$select=Addresses($filter=City eq 'Paris')

      However, we don't have a way to filter primitive types.

      We also don't have a way, in $select or $expand, to pass the current item into a function without binding the function to the type of the current item.

      We already have $it that references the resource identified by the last segment of the resource path, but in this case we want to reference the property on which the select/expand options are specified.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: