[ 
https://issues.apache.org/jira/browse/OLINGO-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14547638#comment-14547638
 ] 

Ralf Handl commented on OLINGO-635:
-----------------------------------

The two $count queries are correct.

The second query is syntactically incorrect if "Products" is a to-many 
navigation (as its name suggests and as it is used in the specificaiton). As 
there can be many products related to a category, the query has to specify 
whether the condtion has to be true for at least one related product, or 
whether it has to be true for all related products:

http://host/service/Categories?$filter=Products/any(p:p/qty lt 10)
http://host/service/Categories?$filter=Products/all(p:p/qty lt 10)

> Parsing error when $filter uses navigational style queries
> ----------------------------------------------------------
>
>                 Key: OLINGO-635
>                 URL: https://issues.apache.org/jira/browse/OLINGO-635
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: V4 4.0.0-beta-01
>            Reporter: Ramesh Reddy
>            Assignee: Christian Amend
>
> The following types are queries are failing pass URIParser.
> See 11.2.9 in V4 spec for more information 
> [http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398314]
> http://host/service/Categories?$filter=Products/$count lt 10
> http://host/service/Categories?$filter=Products/qty lt 10
> http://host/service/Cateoriges?$orderby=Products/$count



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to