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
d4mr194d ago
Did you manage to solve this? I have this exact problem
Nxia618
Nxia618193d 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
d4mr193d ago
thanks! this was it, I had managed to solve it :)