You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same query without $expand returns the correct count value:
http://host/odata/Products?$top=10&$count=true
=> count = 9939
(The count equals the total count of products.)
The count query option should ignore any $top or $expand query options and return the total count of results. (See 11.2.5.5 System Query Option $count of the specification.)
The text was updated successfully, but these errors were encountered:
mwermeester
changed the title
$count value not correct when $expand is used
$count value not correct when $expand is used with $top
Feb 22, 2016
When $expand is used in a query that contains a $count=true and $top query option, then the returned count value is incorrect:
http://host/odata/Products?$expand=ProductType&$top=10&$count=true
=> count = 10
The same query without $expand returns the correct count value:
http://host/odata/Products?$top=10&$count=true
=> count = 9939
(The count equals the total count of products.)
The count query option should ignore any $top or $expand query options and return the total count of results. (See 11.2.5.5 System Query Option $count of the specification.)
The text was updated successfully, but these errors were encountered: