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

EmbeddedJson fields are not able to be sorted on, even with the sortable=True flag #431

Open
sav-norem opened this issue Dec 9, 2022 · 0 comments

Comments

@sav-norem
Copy link

sav-norem commented Dec 9, 2022

Trying to do something like

result_set = Book.find( (Book.metrics.score < 3) ).sort_by("metrics.score")

will result in the error that metrics.score is not part of the model even though the find portion works as expected. Since the sort_by function requires a string to look for the - for sort order, I haven't found a way around this. Model can be found here - taken from RU 204 on JSON with OM - @simonprickett anything to add?

@sav-norem sav-norem changed the title EmbeddedJson fields are not able to be sorted on, even with the Sortable-=true flag EmbeddedJson fields are not able to be sorted on, even with the sortable=True flag Dec 9, 2022
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

1 participant