[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Commented: (ODATA-36) Make $expand implicit if navigation properties are mentioned in $select or $aggregate
[ http://tools.oasis-open.org/issues/browse/ODATA-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31257#action_31257 ] Michael Pizzo commented on ODATA-36: ------------------------------------ I propose that we don't do this. $expand and $select are different parts of the query, handled and evaluated at different points in time (similar to FROM and SELECT clauses in SQL). $expand is evaluated before $select and identifies the full set of entities available to the client. Once that full set of data is defined, $select allows the client to select the properties of those entities that are of interest from that set of data. We are looking at extending $expand to include things like filtering and sorting of the related entities. I would not like to introduce complexity by saying that $expand is used in some case (i.e., where filtering/sorting of related entities is required) but not used in other cases. > Make $expand implicit if navigation properties are mentioned in $select or $aggregate > ------------------------------------------------------------------------------------- > > Key: ODATA-36 > URL: http://tools.oasis-open.org/issues/browse/ODATA-36 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Improvement > Components: OData Protocol v1.0, OData URL Conventions v1.0 > Affects Versions: WD01 > Reporter: Martin Zurmuehl > Priority: Minor > Fix For: WD01 > > > Currently clients need to repeat themselves when projecting on expanded entities: > GET http://services.odata.org/OData/OData.svc/Products?$select=*,Category/Name&$expand=Category > This could be reduced to > GET http://services.odata.org/OData/OData.svc/Products?$select=*,Category/Name > because the client explicitly requests Category/Name, and the server can only satisfy that if it expands the Category. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]