Open cheng93 opened 2 years ago
You are correct - that is not currently supported. There is a CountOption
property in the expansion.
At the root level it is being applied by setting a property as implemented here.
Still - Ok to create a PR to return count for expansions if you have a solution.
Hi, any progress with this? Also any chance of supporting filter on expand? So something like :
api/Entity?$expand=Child($filter=name eq "Bob")
The tests show examples of filter with expand. Ok to submit a PR on the count
feature.
The
expanded@odata.count
properties are missing.In the following sample, there are two examples
Sample https://github.com/cheng93/AutoMapper.OData/blob/master/ApiController.cs
http://localhost:5238/odata/categories?$expand=products($count=true)
expected
actual