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