-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selecting properties in a nested complex type does not work #989
Comments
BingAds has this requirement. |
Further, we need a compact syntax to represent this. Let's say we have this object:
We don't want to do |
@xuzhg Azure Search also has this requirement. This seems to be a duplicate of #196 which as been open for a very long time. Any chance there will be traction on this soon? FYI @robward-ms |
Also related: OData/odata.net#513 |
It would also be nice if there was a capability of filtering collection properties that aren't navigations:
|
Say I have a model where a
Inner
complex type is nested within anOuter
complex (or entity) type, so a request without a$select
would return:According to the OData spec I should be able to write a query like
...?$select=outerProperty1,inner/innerProperty2
and have it return:However what we actually get is an
ODataException
with message:Assemblies affected
System.Web.OData
Reproduce steps
$select
statement that references just one of the properties within that complex type.Expected result
The request succeeds, and only the requested property from the complex type is returned.
Actual result
The request fails.
Additional details
Issue #837 mentions this issue, but it seems prudent to track it specifically.
The text was updated successfully, but these errors were encountered: