DT
Drizzle TeamPrøxïmïty
Cannot read properties of undefined (reading \'columns\')
I tired using relational queries
const bookmarkdb = drizzle(pool, { schema });
const resources = await bookmarkdb.query.bookmark.findFirst({
with: {
resource: true,
},
});
d4mr•194d ago
Did you manage to solve this? I have this exact problem
Nxia618•193d ago
I forgot to include the relevant table (I'm splitting my model into files) when doing
const db = drizzle(pool, { schema });
resulted in the error "Cannot read properties of undefined (reading 'columns')"@d4mr perhaps similar issue?d4mr•193d ago
thanks! this was it, I had managed to solve it :)
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 PostsDoes Drizzle support Microsoft SQL Server?Does Drizzle support Microsoft SQL Server ?Findfirst and Findmany configHello I am new to using drizzle and can't seem to make the findFirst and findMany work. I am using pTrouble running JEST testing in Hono for Cloudfare WorkersSo, I have an API setup in Hono with cloudfare workers and I setup the JEST tests but they don't seeHelp migrating a nested Prisma updateBeen trying to set this up without going through the raw sql route for some time but cant seem to wrWhich typescript type should I use for select?Hi, this question might be confusing. Let me explain the problem, I'm building a common function forpush:sqlite creating weird tablesWhen I run push:sqlite, tables like `__old_push_categories` are created and are automatically refrenUsing a placeholder with an inArrayI'm porting a query to a prepared statement, in the query I used to do something like:
```
.where(iDB insertion - Date field (mode: string) is using default value instead of passed valueTrying to insert an Order object which has a "pickupTime" Date field to db, but upon insertion the c