Overview
Learn to use Prisma, a powerful Node.js and TypeScript ORM and toolkit for database interaction, in this comprehensive 37-minute crash course. Explore key concepts including data modeling, schema creation, and migrations. Master the Prisma Client to perform CRUD operations, create relationships between models, and execute complex queries. Discover how to set up User and Article models, run migrations, and utilize the main() function. Practice creating, retrieving, updating, and deleting data, as well as establishing relationships between entities. Gain hands-on experience with looping through users and articles, and finish by exploring the Prisma Studio GUI for visual database management. Access a written version of the course and additional resources to enhance your learning experience.
Syllabus
- Intro & What Is Prisma?
- What Is Data Modeling?
- Getting Started
- The Schema File
- User Model
- Article Model
- Running Migrations
- Using The Prisma Client
- main Function
- Create a User
- Get Users
- Create Article & Relate User
- Create User & Article With One Query
- Loop Through Users & Articles
- Update Data
- Remove Data
- Prisma Studio GUI
Taught by
Traversy Media