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, }, });
3 Replies
d4mr
d4mr13mo ago
Did you manage to solve this? I have this exact problem
Nxia618
Nxia61813mo 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
d4mr13mo ago
thanks! this was it, I had managed to solve it :)
Want results from more Discord servers?
Add your server