is there anyway wherein can count of data in response payload without value array. using odatav4.0 webapi 2.2. returns values , count when query like: http://odata/people?$count=true
i need "@odata.count":1, "value":[] or without "value".
is way have function job?
set $top 0 , $count true.
for example: http://services.odata.org/v4/northwind/northwind.svc/customers?$count=true&$top=0
returns count no results
{"@odata.context":"http://services.odata.org/v4/northwind/northwind.svc/$metadata#customers","@odata.count":91,"value":[]}
count calculated after applying $filter, without factoring in $top , $skip.
informs there 11 results country 'germany', without returning records in response.
Comments
Post a Comment