Seeding the Database using Prisma
HTML-код
- Опубликовано: 21 авг 2024
- Blog Post: www.prisma.io/...
Code: github.com/m-a...
-----------------------
Next:
👉 Check the previous video: Setting up a PostgreSQL database: • Setting up a PostgreSQ...
👉 Check the next video: Using Prisma Studio to View the Data in Our Database: • Using Prisma Studio to...
------------------------
📚 Resources:
✅ Subscribe to Prisma: / @prismadata
✅ Get help from the Prisma Community: slack.prisma.io/
✅ Learn more about Prisma:
◭ Website: www.prisma.io
◭ Docs: www.prisma.io/...
◭ Quickstart: pris.ly/qstart
------------------------
💬 Connect with Prisma:
Twitter: / prisma
Instagram: / prisma.io
TikTok: / prismadata
Facebook: / prisma.io
LinkedIn: / prisma-io
------------------------
Prisma sponsors human-reviewed, professional closed captions for ANY video valuable to our community (for example, about: Node.js, TypeScript & Type Safety, Prisma, databases, etc). Get your FREE captions here: pris.ly/closed...
This video is unfortunately outdated because I was using version 2.28.0. Seeding is done a bit differently with version 3
Docs: www.prisma.io/docs/guides/database/seed-database
Updated seeding code: github.com/m-abdelwahab/awesome-links/tree/part-2
- Mahmoud
I'm following the docs and I still get an error
Thank you for this wonderful tutorial. But, please update how to do seeding because this method is saying error for me.
Hey Bishal! This video is unfortunately outdated because I was using version 2.28.0. Seeding is done a bit differently with version 3
Docs: www.prisma.io/docs/guides/database/seed-database
Updated seeding code: github.com/m-abdelwahab/awesome-links/tree/part-2
- Mahmoud
update package json and add : "prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
still not working if not install ts-node as global package in ur machine
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
after devedencies paste code in below
"prisma": {
"seed": "ts-node prisma/seed.ts"
}
thank u for ur response after 1 year hhh :)@@dhanitrianggara1772
it seems like you are repeat video