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
Sort by a nested key #11880
Comments
This functionality is not implemented yet. Look at this discussion: #4502 |
I see. Sorry about that, did check all the issues, did not check discussion for this topic. Wouldn't it be meaningful to mention that in docs? |
I'm not sure! Generally speaking, the documentation lists/explains all the features that exist. Otherwise, they can virtually get infinitely big (as there's always another feature somebody could want for something) 🤔 (cc @erondpowell) |
For now, this is a duplicate of #4502 👍🏻 |
I think this whole category of questions will be resolved once we have that dynamic FAQ system properly implemented. |
Preflight Checklist
Describe the Bug
Hello everyone,
seems there is a trouble with sorting by a nested key.
Let's say I have a collection
video
which contains onefile
(M2O).The endpoint
/items/video?fields=*,file.*&sort=id
correctly produces:What fails is when I sort the date by nested key, e.g.
file.title
. Calling/iitems/video?fields=*,file.*&sort=file.title
producesINTERNAL_SERVER_ERROR
.To Reproduce
It can be easily reproduced by creating a O2M relationship and trying sort by a nested key as described step by step above.
Errors Shown
The message in server console is:
What version of Directus are you using?
9.4.0 / 9.5.2
What version of Node.js are you using?
v16.13.0
What database are you using?
Postgres 14
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying Directus?
locally, Docker
The text was updated successfully, but these errors were encountered: