DT
Drizzle Teamkingtimm
Simple ForeignKey With statement not working
Hi - I am attempting to use a with statement on a query and am getting this error: Cannot read properties of undefined (reading 'referencedTable')
Here's the query:
Here is the schema
Do I need to add a relationship? From the docs - it seemed like the foreignkey would be enough. The "Faves" table is just a record of favorite combinations from the "Names" table.
Angelelz•240d ago
The relations are necessary if you want to use the RQB
The 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 PostsMySQL UUID as PKI am unable to get a PK setup which has a default UUID value.
I have
```ts
logID: varchar('logID'totalCount from relational queryis it somehow possible to get the total count of a relational query?
Core queries aren't possible hCannot read properties of undefined (reading \'columns\')I tired using relational queries
` const bookmarkdb = drizzle(pool, { schema });
coDoes Drizzle support Microsoft SQL Server?Does Drizzle support Microsoft SQL Server ?