OData query option $count in $expand not working

旧城冷巷雨未停 提交于 2019-12-12 01:55:23

问题


I tried to use $count in an $expand like this query

.../OData/Foo(1)?$expand=Bars($count=true)

However count is no where to be found in the result.

{
  "...": "...",
  "Bars": {
    "...": "..."
  }
}

No error either. I'm using ASP.NET Web API OData 5.4, which is using OData v4.

What gives? Not implemented yet?


回答1:


This feature hasn't been implemented yet. A related issue has been created https://github.com/OData/WebApi/issues/165 .



来源:https://stackoverflow.com/questions/28967908/odata-query-option-count-in-expand-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!