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

Simplify selection of properties of complex type

    XMLWordPrintable

    Details

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

      Description

      Currently, properties of complex types are individually selected, as in:
      $select=Name,Address/City,Address/State,Address/Zip

      We could simplify the syntax for selecting individual properties of a complex type, similar to expand options. Something like:
      $select=Name, Address($select=City,State,Zip)
      or
      $select=Name, Address(City,State,Zip)

      The first syntax would support adding the ability, for example, to $filter or $sort a collection of complex types.

      We could put $compute (or an inline expression) in the $select in as a scoped value (couldn't be used in filter/sort).

      Putting $expand in $select brings in all the issues of combining $expand and $select and results in two ways of doing expand.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: