Wrong Schema in https://sap.github.io/cloud-sdk/docs/js/features/odata/v4-client#sub-queries-in-expand
hasanciftci26 opened this issue · 1 comments
hasanciftci26 commented
Hi,
There is a wrong schema given on the OData v4 Client API page in Sub-Queries in Expand section which may lead to misunderstanding. peopleApi has a navigation property called "FRIENDS" and some subqueries like select, filter, orderBy are shown in the examples. However, the peopleApi schema is used in the subqueries. Instead, it should be an api of the entity that is targeted by the FRIENDS navigation property. I think it should be something like friendsApi depending on the name of the entity used in the example.
marikaner commented
Hey @hasanciftci26, this example is correct, because the navigation property Friends
is of type People
. You can check the $metadata
in the TripPin
service.