DrizzleTypeError<"Seems like the schema generic is missing - did you forget to add it to your DB typ
Hello, I'm new to this. I'm using mysql + drizzle-orm + typescript in nextjs. I use next.js boilerplate
when I use this
ide/typescript will show error like this for
books
for more detail, I create an issue here: https://github.com/drizzle-team/drizzle-orm/issues/27388 Replies
up
try to add typeof you schema.
@singgih I was defined types like this
Try this:
@Mario564 thank you, you save my project 🤝
This doesn't seem to work with the planetscale-serverless driver
@dane.stevens The driver shouldn't affect the type of of the query builder. Can you share your setup file to see what could be wrong?