drizzle-team/drizzle-orm

[BUG]: `not` type doesn't work with `and` and `or`

开放

#1,818 创建于 2024年1月21日

 (11 条评论) (2 个反应) (0 位负责人)TypeScript (357 个派生)batch import
good first issueimprovementpriorityqb/crud

仓库指标

星标
 (16,414 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南