drizzle-team / drizzle-team/drizzle-orm

[BUG]: Drizzle-seed: Warning on relations

Open
#4,242 3 comments 9 reactions 0 assignees View on GitHub
bug drizzle/seed
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.38.4

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

0.30.2

### Other packages

_No response_

### Describe the Bug

This warning: https://github.com/drizzle-team/drizzle-orm/blob/53f578c11a77c7c086f9c3ed897afdebce7ed6e6/drizzle-seed/src/index.ts#L665

Happens when seeding a schema using both relations and foreign keys which the docs explicitly state can be used together:

> What this means is relations and foreign keys can be used together

from https://orm.drizzle.team/docs/relations#foreign-keys

Does this warning indicate that I need to change something? If not could I please turn it off? it's very large block of noise in my tests. Thanks! drizzle is awesome!

Contributor guide

Open the contributing guide

Research direction

Start at drizzle-seed/src/index.ts line 665 and reproduce the warning while seeding a schema that uses both relations and foreign keys. Compare the behavior with the relations documentation, then verify that the warning is either accurate and actionable or can be suppressed; add or update coverage for the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.