drizzle-team / drizzle-team/drizzle-orm

[BUG]: Incorrect type when using a condition in relational query

Open
#824 9 comments 6 reactions 1 assignee Claimed by @dankochetov View on GitHub
bug priority rqb
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

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

0.27.0

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

0.19.1

### Describe the Bug

**The type from this query:**
![image](https://github.com/drizzle-team/drizzle-orm/assets/54242706/3fa3e01e-d3fa-47d7-916b-701d06534907)
**should be:**
image
**But instead, it's this:**
image

### Expected behavior

_No response_

### Environment & setup

_No response_

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.