drizzle-team / drizzle-team/drizzle-orm

[BUG]: insane cannot set with to false

Open
#4,192 3 comments 1 reaction 0 assignees View on GitHub
improvement rqb
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [x] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

^0.39.2

### What version of `drizzle-kit` are you using?

^0.30.1

### Other packages

_No response_

### Describe the Bug

![Image](https://github.com/user-attachments/assets/8219b4aa-76cd-40d7-bba1-1dc3de0cd3d8)

this is crazy and unexpected, we should be able to set to false even if TS doesn't play nice with it, I am sure TS can find a way to work...

it only accepts true, or nothing

```
TS2322: Type false is not assignable to type
true | DBQueryConfig<"many", false, ExtractTablesWithRelations<{ UpdateVersionsTable: PgTableWithColumns<{ name: "update_versions"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "update_versions"; dataType: "string"; columnType: "PgUUID"; ... 10 more ...; generated: undefined; }, {}, {}>; ... 6...
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.