© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago
anselan

Drizzle Studio not updating schema but apparently applies it anyway?

I have added a simple one-to-one relation in my schema which is named
myGarden
myGarden
(this links
users
users
to an entry in
gardens
gardens
).

In Drizzle Studio, this appears as a column in
users
users
, and correctly links to an entry in the
gardens
gardens
table. But when I try to run a query like
db.query.users.findMany({ with: { myGarden: true } });
db.query.users.findMany({ with: { myGarden: true } });

... I get a type error for
myGarden
myGarden
(doesn't exist) and if I click on the
schema
schema
tab I see that there is no relation named
myGarden
myGarden
, only
garden
garden
. I don't even know where this came from! (An older version of the shema? Where is it getting that from?)

To reiterate - Drizzle Studio seems to respect the new naming when displaying the table, and the query works just fine from my NodeJS server that uses Drizzle ORM. It's only Drizzle Studio, and its "Drizzle Runner" which refuses to acknowledge the changed relation as per the schema.
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Drizzle studio not updating
Drizzle TeamDTDrizzle Team / help
16mo ago
No schema loaded in Drizzle Studio
Drizzle TeamDTDrizzle Team / help
15mo ago
missing comma in drizzle studio schema
Drizzle TeamDTDrizzle Team / help
2y ago
Drizzle studio not working
Drizzle TeamDTDrizzle Team / help
7mo ago