© 2026 Hedgehog Software, LLC
transportistShema
TypeError: Cannot read properties of undefined (reading 'Symbol(drizzle:Schema)')
import * as giverSchema from './config/schema/cargoGiver.schema' import * as transportistSchema from './config/schema/transportist.schema' import * as userSchema from './config/schema/users.schema' app.get('/', async c => { const schema = { ...userSchema, ...giverSchema, ...transportistSchema } const db = drizzle(c.env.DB, { schema }) const res = await db.query.user.findMany({ with: { cargoGiver: true } }) return c.json(res) })
const schema = { ...userSchema, ...giverSchema, // ...transportistSchema }