ockonor#21
DTDrizzle Team
•Created by ockonor#21 on 6/17/2023 in #help
Typescript Problem, do you have an idea ?
Property 'user' does not exist on type 'DrizzleTypeError<"Seems like the schema generic is missing - did you forget to add it to your DB type?">'.ts(2339)
import * as schema from './schema';
import { drizzle } from 'drizzle-orm/...';
const db = drizzle(client, { schema });
const result = await db.query.users.findMany({
with: {
posts: true
},
});
1 replies