drizzle-team / drizzle-team/drizzle-orm

[BUG]: `enumValues` are `undefined` when picked via table

Open
#1,867 0 comments 1 reaction 0 assignees View on GitHub
bug db/postgres priority
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.29.3

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

0.20.14

### Describe the Bug

This happens with `pgEnum`.

If you have a table (`foo`), that has a enum field (`bar`), `foo.bar.enumValues` will always be `undefined`, although the derived type states that it cannot be undefined.

Yet `bar.enumValues` will be defined.

### Expected behavior

`foo.bar.enumValues` to be defined.

### 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.