WebApi icon indicating copy to clipboard operation
WebApi copied to clipboard

Query option should work on untype scenario

Open LianwMS opened this issue 10 years ago • 10 comments

For example:

  1. $count can't work on query option

a) ~/Customers?$filter=Orders/$count lt 10
b) ~/Customers?$orderby=Orders/$count

  1. One user want to make sure the following $count related query options can work:

a) http://host/service/Categories?$expand=Products($count=true)&$count=true
b) http://host/service/Categories?$expand=Products($count=true),NavigationProp erty2($count=true)

Work Item Details

Original CodePlex Issue: Issue 2179 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Nov 6, 2014 at 1:19 AM Reported by: xuzhg Updated on: Nov 6, 2014 at 1:19 AM Updated by: xuzhg

LianwMS avatar Jan 12 '15 02:01 LianwMS

Is there any update regarding this issue ? I'm trying to do $filter/$expand in a typeless scenario and unable to proceed.

arunnav avatar Jan 22 '18 11:01 arunnav

Is this issue with untype scenario has been resolved?

rajarajanj avatar Mar 03 '20 04:03 rajarajanj

Has this been resolved ?

cvraman avatar Aug 17 '20 12:08 cvraman

Currently OData doesnt support this feature. However we are looking to building it, but it hasnt been in to a high priority for the community

Sreejithpin avatar Aug 18 '20 17:08 Sreejithpin

Any news?

EvgeniySu avatar Sep 25 '20 13:09 EvgeniySu

Any news?

ozonemojo2 avatar Sep 30 '20 09:09 ozonemojo2

I went through the following article: https://devblogs.microsoft.com/odata/dynamic-properties-container-property-in-odata-client/ It does almost all I need. May be this will be in use to you.

EvgeniySu avatar Sep 30 '20 09:09 EvgeniySu

Closing this issue due to inactivity. If this still affects the latest versions of the library, kindly open a new issue.

habbes avatar Mar 01 '22 08:03 habbes

Adding this to the backlog to be reviewed in the next prioritization cycle. Backlog reference: 1791150

habbes avatar Mar 01 '22 09:03 habbes

Was this resolved? I am building OData API using a dynamic model which I read from a database as it differs for every client. Tried adding the PageSize limit to the controller and it does not work.

psaltelk avatar May 27 '22 11:05 psaltelk