JJZFIVE
DTDrizzle Team
•Created by JJZFIVE on 5/26/2024 in #help
How to put Drizzle schemas in shared folder (monorepo) and have api's drizzle.config recognize them
I have a monorepo with top level folders: shared, frontend, backend. I've put my Drizzle tables in the shared folder so that I can have the inferred TS types in the shared folder as well, because both the frontend and backend use them.
How do I point to these schemas in the shared folder for when I set up my drizzle.config in my backend folder?
On a separate but maybe related note, intellisense is giving me this error when using my pgTables in the api after importing them from the shared folder:
Property '[IsDrizzleTable]' is missing in type 'PgTable
Thank you so much!5 replies