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

Feature: Add sorting by _display_value #38

Open
robxbob opened this issue Nov 6, 2024 · 1 comment
Open

Feature: Add sorting by _display_value #38

robxbob opened this issue Nov 6, 2024 · 1 comment
Milestone

Comments

@robxbob
Copy link

robxbob commented Nov 6, 2024

Currently sorting only works on existing columns, it would be nice if we could sort by _display_value or better yet default the sort to _display_value on relationship types.

For example if we had a Book-Author relationship, when sorting on sort=[author], it would sort by _display_value by default. Currently, an uncaught error occurs when attempting to sort directly.

@robxbob
Copy link
Author

robxbob commented Nov 21, 2024

Also for filters as it would allow generalized functions that need the "primary field" to filter by. The generalized function could default to _displayValue so that a filter can look like: filter=[[ { path: "_display_value", op: "like", value: inputValue } ]]

@davidism davidism added this to the 1.2.0 milestone Nov 26, 2024
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

2 participants