K
Kysely15mo ago
ohmi

.where('x', 'is not', null) and correspond type's nullability

Not sure if this even possible in typescript (although all of the work Kysely already makes it seem magical). But let's say we have a column 'x' that has type string | null. Is it possible to write a query that ends up resulting in a final type of string after using .where('x', 'is not', null) or any similar method?
Solution:
Message Not Public
Sign In & Join Server To View
Jump to solution
7 Replies
Solution
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
ohmi
ohmi15mo ago
but in theory, it would be possible?
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
ohmi
ohmi15mo ago
magic awesome, thanks again
ohmi
ohmi15mo ago
what part of the instance should i be calling it on? did a quick search of this channel, and the docs but didnt see any examples
ohmi
ohmi15mo ago
ah not in the most recent npm release?
Igal
Igal15mo ago
Sorry, my bad, this is release pending
Want results from more Discord servers?
Add your server
More Posts