I was writing a query where I was supposed to manipulate the columns, basically, I've externalId where is Null or an integer, so my objetive it was order first if externalId is null late by the date
Basicaly this raw query it works very nice
"SELECT * FROM $tableName ORDER BY CASE WHEN ${externalId.name} IS NULL THEN 0 ELSE 1 END, ${dtCreated.name} DESC"
But I not got to use on orderBy because of definition standard
I was writing a query where I was supposed to manipulate the columns, basically, I've
externalId
where is Null or an integer, so my objetive it was order first ifexternalId
is null late by the dateBasicaly this raw query it works very nice
But I not got to use on
orderBy
because of definition standardI was thinking about allow user send null to avoid breaking changes, and another thing, it was allow on orderByMany ascending be List