decho
Explore posts from serversHow to infer an aggregated column with `filterWhere` clause as nullable?
All right, thank you @Igal I will figure something out, most likely with
$castTo
or maybe even restructure my query. I was also thinking, if $nonNull
is a helper, shouldn't there be a $nullable
helper as well, not sure if that's a good idea or not haha 🙂
But anyway, cheers!5 replies
How to do `LIKE ANY` query in Kysely?
you can try something like this:
https://kyse.link/0RE11
However, I am not sure this is the best possible way to do this. Not particularly happy I had to use
sql
for the array.3 replies
Question about ColumnTypes and dates.
I think node-postgres does this
DATE
->JS Date
transformation out of the box, and yes I'm aware I can tweak it:
pg.types.setTypeParser(pg.types.builtins.DATE, v => String(v));
(something like this), but then if i need to work with a Date object in my JS application, I would then need to convert it back once more, it becomes ugly10 replies