Learn Prisma
Model, query, and migrate a real PostgreSQL database with Prisma 8 and TypeScript.
Start learning
Build real skills one lesson at a time
Explore the complete curriculum below, then start with the lesson that is right for you.
About this course
This course teaches you to work with a real PostgreSQL database from
TypeScript using Prisma 8. You'll query and write data behind a team task
board, model the database in contract.prisma, and change it safely with
migrations, running the real Prisma CLI in the terminal. It ends with a
capstone that adds sprints to the board, from the first model to the
transaction that closes a sprint.
What you'll learn
- Reading rows with Prisma's typed query API
- Filtering, sorting, and paging with
where,orderBy,limit, andoffset - Writing data with
create,update, anddelete, and keeping writes together in a transaction - Modeling a database in
contract.prismawith types, defaults, unique fields, and enums - Relations: one-to-many, many-to-many through a join model, and loading related rows with
include - Counting and summarizing with
aggregate,groupBy, and counts inside aninclude - Migrations: planning and applying a change, handling data loss and renames, and backfilling a new required field
Prerequisites
- Finished Learn SQL (opens in a new tab) or comfortable with SQL queries, joins, and writes
- Finished TypeScript Fundamentals (opens in a new tab) or comfortable writing TypeScript functions and types
- No Prisma experience needed
Course instructor
Brad Traversy
Founder of Traversy Media and an educator known for practical, project-focused web development courses.
Course content
Keep learning
More programming courses
Beginner course
Python for Beginners
Go from zero to writing real Python programs in the browser. Build up the core language, variables, types, control flow, lists, loops, and functions, with instant feedback and no setup required.
View courseIntermediate course
Intermediate Python
Write interactive Python programs that ask questions, clean up text, handle errors, process data files, call real APIs, and model games with classes.
View courseIntermediate course
Vue.js Fundamentals
Build real Vue apps from scratch. Learn single-file components, template syntax, reactivity with ref and computed, props and events, forms with v-model, data fetching, composables, and routing, then put it all together in an anime explorer capstone. Assumes you have finished JavaScript Basics and Intermediate JavaScript.
View course

