Order by with NullsOrder.last with Managers #3386
Answered
by
simolus3
Romain-Guillot
asked this question in
Q&A
-
What's the equivalent to final query = (select(db.myTable)
..orderBy([
(t) => OrderingTerm.asc(db.myTable.rank, nulls: NullsOrder.last),
(t) => OrderingTerm.asc(db.myTable.label),
]) with Managers ? So, what's the best way to handle "NullsOrder.last" for this query: final query = db.managers.entourages
..orderBy(
(o) => o.priority.asc() & o.lastName.asc() & o.firstName.asc(),
); |
Beta Was this translation helpful? Give feedback.
Answered by
simolus3
Dec 20, 2024
Replies: 1 comment
-
The manager API does not currently support the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Romain-Guillot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The manager API does not currently support the
NullsOrder
enum to control how null values are sorted. I'll add that API in #3387, so the next drift version will let you writeo.firstName.asc(nulls: NullsOrder.last)
.