Migration from prisma to Drizzle
Hello, i'm migrating from prisma to drizzle in my nuxt 3 app. I have some issues migrating this file: .
Can you help me ? You can find my code here : https://github.com/arthurDanjou/website-v2/tree/drizzle and my schema here : https://github.com/ArthurDanjou/website-v2/blob/drizzle/server/database/schema.ts
GitHub
GitHub - ArthurDanjou/website-v2 at drizzle
Contribute to ArthurDanjou/website-v2 development by creating an account on GitHub.
GitHub
website-v2/server/database/schema.ts at drizzle · ArthurDanjou/webs...
Contribute to ArthurDanjou/website-v2 development by creating an account on GitHub.
2 Replies
Which part of it are you having trouble migrating?
I have to parameters : favorite and category. Favorite is a Boolean and category is a string (saved in db in the categories table). I want to fetch all the bookmarks of the selected category where the bookmarks are favorite or not (if favorite param is checked). And the category param can be ‘all’ so I want to fetch all the bookmarks favorite or not (depends again of the favorite param)
I found the solution : `
SImplified with drizzle
Better than prisma