DT
Drizzle TeamJérémie
Mapped column name and relation with the original name
Hi, I am taking over an old project and have found an issue, I'm not sure if I should file it as a bug:
I have two MySql tables here is the oversimplified version:
In my drizzle schema I have mapped the events table this way:
This results in an error when I query the table using
{with: { artist: true}
It throws Duplicate column name 'artist'
If I simply use a different name for the relation everything works as expected.
I just wanted to know wether this is expected or if I should post it as an issue.
Thanks for readingThe official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.4KMembers
View on DiscordWant results from more Discord servers?
More Posts