[BUG]: #1826
Labels
good first issue
Good for newcomers
has-pr
This issue has one or more PRs that that could close the issue when merged
improvement
priority
Will be worked on next
qb/crud
What version of
drizzle-orm
are you using?0.29.3
What version of
drizzle-kit
are you using?n/a
Describe the Bug
Conditional helper functions such as
isNull
,isNotNull
,exists
,notExists
cannot be used within a query select, without returning anunknown
type.Expected behavior
The
sql
wrapper used should be able to be typed for these boolean returns. I can imagine that there's a circumstance where you might not want to, given the fact these query helpers can be used in other places?Environment & setup
Example Stackblitz: https://stackblitz.com/edit/typescript-5bbctn?file=index.ts
The text was updated successfully, but these errors were encountered: