Keep getting "cannot read properties of undefined (reading 'referencedTable') error

Hi folks, I tried to use drizzle APIs to query two tables with one-to-many relationship and join them using with. I looked out for other issues about that and checked if I had the correct relationships and schema setup. I have no broken config or relationship etc. You can see the relationships, my query and setup in the pictures. Can anyone help me to figure it out?
word schema
index.ts file same as in the docs
drizzle.config.ts
meaning schema
this is how I query using drizzle APIs
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server