You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?The text was updated successfully, but these errors were encountered: