Skip to content
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

Order by nested single-cardinality property #835

Open
miDeb opened this issue Jul 15, 2024 · 0 comments
Open

Order by nested single-cardinality property #835

miDeb opened this issue Jul 15, 2024 · 0 comments

Comments

@miDeb
Copy link

miDeb commented Jul 15, 2024

I don't know if this is specified somewhere (I didn't find anything), but according to this user on stack overflow it should be possible to sort data by a nested property, such as Orders?$expand=Customer&$orderby=Customer/City. As far as I can tell this is not currently implemented in lodata (getting the error "The orderby parameter specified properties (...) that did not exist").

I know you can order the list of expanded properties by using a nested orderBy, in this case however I want to order the top-level list according to a nested property that is connected in a one-to-one relationship.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant