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 included relationships #236

Open
glonaldo70 opened this issue Oct 9, 2023 · 1 comment
Open

Sorting included relationships #236

glonaldo70 opened this issue Oct 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@glonaldo70
Copy link

Something like this
....ebove filtrer,
"includes": [
{
"relation": "messages",
"sort": [
{
"field": "created_at",
"direction": "desc"
}
]
}
]

i want to get all message of user sorted. i can not go through message controller directly, i have to pass to user before

@alexzarbn alexzarbn changed the title how to sort includes relationships data Sorting included relationships Oct 13, 2023
@alexzarbn alexzarbn added the enhancement New feature or request label Oct 13, 2023
@alexzarbn
Copy link
Member

Hi @glonaldo70,

It is currently not possible to sort included relationships. I'm marking the issue as "enhancement" for later implementation.

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

No branches or pull requests

2 participants