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...

Комментарии • 9

  • @PrismaData
    @PrismaData  2 года назад +4

    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

    • @netanelkaye3014
      @netanelkaye3014 11 месяцев назад +1

      I'm following the docs and I still get an error

  • @bishalshrestha9795
    @bishalshrestha9795 2 года назад

    Thank you for this wonderful tutorial. But, please update how to do seeding because this method is saying error for me.

    • @PrismaData
      @PrismaData  2 года назад +1

      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

  • @kamalkamals
    @kamalkamals 2 года назад +1

    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

    • @judemusyoki7052
      @judemusyoki7052 2 года назад

      "prisma": {
      "seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
      },

    • @dhanitrianggara1772
      @dhanitrianggara1772 11 месяцев назад

      after devedencies paste code in below
      "prisma": {
      "seed": "ts-node prisma/seed.ts"
      }

    • @kamalkamals
      @kamalkamals 11 месяцев назад

      thank u for ur response after 1 year hhh :)@@dhanitrianggara1772

  • @birindwagrace3287
    @birindwagrace3287 3 года назад

    it seems like you are repeat video