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

Sorting with include #62

Open
AntonAndreevichMoroz opened this issue Sep 11, 2023 · 1 comment
Open

Sorting with include #62

AntonAndreevichMoroz opened this issue Sep 11, 2023 · 1 comment

Comments

@AntonAndreevichMoroz
Copy link

How can I use orderBy for include in a request. So that I can sort the nested response. For example, api/clients?include=users&orderby={"id":"asc"} only sorts clients records, but not nested users records. How can I additionally sort users?

@foyarash
Copy link
Contributor

Hello @AntonAndreevichMoroz, the lib currently doesnt support nested orders, but I'd be glad to accept a PR that fixes this :)

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

No branches or pull requests

2 participants