Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD01
    • Fix Version/s: V4.0_CSD02
    • Component/s: ABNF, URL Conventions
    • Labels:
      None
    • Environment:

      [Applied]

      Description

      Collections of entities and complex type instances are now treated equally, but collections of primitive values are somewhat neglected. They do allow the path suffix /$count, and the query options $count, $top and $skip are straight-forward.

      For $filter and $orderby we need one tiny generalization: we currently allow common expressions within the lambda operators any() and all() to use $it for addressing the current entity, and we can use that to filter collections of primitive values:

      GET ~/Customers(1)/EmailAddresses?$filter=endswith($it,'.com')

      This increased flexibility is also useful for querying collections of entities:

      GET ~/Employees?$filter=$it eq Manager

      Would return all employees who are their own manager.

      This also allows retrieving the entity for a given reference:

      GET ~/Employees?filter=$it eq

      { odata.id: .... }

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: