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 (this links users to an entry in gardens). In Drizzle Studio, this appears as a column in users , and correctly links to an entry in the 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 (doesn't exist) and if I click on the schema tab I see that there is no relation named myGarden , only 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.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server