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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So far, I've tried using the "$sort" parameter on a query, targeting the dot separated name of the nested table, like 'child.id.'
With an $eager relation that doesn't work as the the child table is queried separately and 'child.id' isn't present yet.
I tried $joinEager too, but that aliased the order by clause and the resulting error said that the field didn't exist.
Am I better off writing a modifier that sorts how I'd like and calling that via the $modify param? Or am I missing an easy way to do this?
Beta Was this translation helpful? Give feedback.
All reactions