I have some examples of $select and $expand that do not work according to the
spec:
This still selects all properties of Orders instead of just the OrderID:
http://localhost:8886/JPAProducerExample.svc/Customers?$format=json&$expand=Orders&$select=Phone,CustomerID,Orders/OrderID
This does not expand Orders/OrderDetails, it does expand Orders/Employee
http://localhost:8886/JPAProducerExample.svc/Customers%28%27ALFKI%27%29?$format=json&$expand=Orders,Orders/OrderDetails,Orders/Employee&$select=CustomerID
This expands Orders even though it is not selected.
http://localhost:8886/JPAProducerExample.svc/Customers%28%27ALFKI%27%29?$format=json&$expand=Orders&$select=CustomerID
I have a new class called PathHelper that implements the $select and $expand
algorithms in a handy form that is re-usable by any producer PathHelper will be
checked in in a day or so.
Original issue reported on code.google.com by tony.ro...@gmail.com on 27 Sep 2011 at 3:51
Original issue reported on code.google.com by
tony.ro...@gmail.com
on 27 Sep 2011 at 3:51