Last post Jul 31, 2014 02:11 PM by rudywilkjr
Jul 31, 2014 12:12 PM|rudywilkjr|LINK
According to the OData v4 documentation the following should be a completely valid Request:
Example 90: all categories and for each category all related products with a discontinued date equal to null
http://host/service/Categories?$expand=Products($filter=DiscontinuedDate eq null)
Unfortunately, I cannot seem to get this function to work appropriately. Using the publicly available OData v4 endpoint below:
Review the following request "http://services.odata.org/V4/OData/OData.svc/Persons?$expand=PersonDetail($filter=Age%20eq%2040)"
The response includes all Persons and not just Persons whose age equals 40. I am seeing the same behavior in my project. Any thoughts as to what is going on here?
Jul 31, 2014 02:11 PM|rudywilkjr|LINK
Ok... The actual solution I was trying to get at is as follows: