Filter an OData query based on a link count? -


Given a framework where two types have appeared in an Odata system with a master / extension relationship:

Order
- Order Details

How would you filter a query based on the count of related order details? In my head, this is something with lines of

/ order $ filter = count (OrderDetails) eq 0

but surely no count Not working. So, how do you prepare a list of orders that do not have any orders?

Very similar question for this one: Currently the Odita Protocol does not have any operator / Does not support the query. The best solution is to expose a service operation that directly displays such operation from the server.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -