Unable to use db.query but able to use reqular db.select
I had the problem with using Drizzle Queries, it isn't working but works with regular select
my schema :
my drizzle config:
and i can't import with
@/db/schema
2 Replies
You need to import your schema and pass it to the drizzle initializer function - if you're having difficulties with importing the schema, that probably has something to do with your typescript and/or build config (if you're running into specific errors, I may be able to help with more details').
thanks for this