drizzle-team/drizzle-orm
View on GitHub[BUG]: `not` type doesn't work with `and` and `or`
Open
#1,818 opened on Jan 21, 2024
good first issueimprovementpriorityqb/crud
Repository metrics
- Stars
- (16,414 stars)
- PR merge metrics
- (Avg merge 10d 10h) (9 merged PRs in 30d)
Description
What version of drizzle-orm are you using?
0.29.3
What version of drizzle-kit are you using?
0.20.9
Describe the Bug
await db.query.users.findMany({
where: not(and(ilike(users.name, '%asdf%')))
})
This gives a type error. If you cast the and expression as SQLWrapper it works properly.
Expected behavior
not should accept SQL
Environment & setup
No response