Prisma Crash Course
Let’s look at Prisma, which is a Node.js & TypeScript ORM & toolkit to interact with your database.
Written Version:
https://www.traversymedia.com/blog/prisma-crash-course
Check Out My Courses:
https://traversymedia.com
Timestamps:
0:00 – Intro & What Is Prisma?
5:30 – What Is Data Modeling?
6:28 – Getting Started
9:38 – The Schema File
10:36 – User Model
12:29 – Article Model
14:13 – Running Migrations
15:45 – Using The Prisma Client
16:18 – main() Function
18:00 – Create a User
19:40 – Get Users
20:44 – Create Article & Relate User
23:16 – Create User & Article With One Query
27:59 – Loop Through Users & Articles
31:30 – Update Data
32:37 – Remove Data
34:23 – Prisma Studio GUI
source