Buy Now and unlock this series
$
49
.99
$
39
.99
yours forever
$
49
.99
$
39
.99
Become a Pro and unlock everything
$
24
.99
per month
$
24
.99
Basic Prisma Schema
In this video, we will start building our schema model and get a first look at our model using Prisma Studio.
Downloads
Become a pro to download code and videos
Modern GraphQL Databases with Prisma
31 videos
Released: September 30 2021Course Instructor
Ryan Elainska
- Getting Started
15m14s - Basic Prisma Schema
19m9s - Scaffolding our API
16m45s - Organizing our API into Modules
22m37s - Creating the S3 Bucket Interface
25m30s - Creating our Local "Bucket"
17m48s - Creating Rows Using Prisma
9m37s - Creating Rows with Relation Fields
22m36s - Downloading Files from a GET Endpoint
16m18s - Uploading Files to a PUT Endpoint
7m34s - Getting by ID Using Prisma
12m33s - Seeding Data
26m26s - Creating a New File Version
16m1s - Getting Relation Fields
12m34s - Updates and Deletes, Part 1
6m39s - Updates and Deletes, Part 2
18m23s - Updates and Deletes, Part 3
15m20s - Basic Search
7m57s - Tracking "Ancestors" with a Prisma Array Type
8m14s - Updating our API for Ancestors
6m23s - Large DB Transactions
25m29s - Prisma 'distinct'
27m41s - Prisma Raw SQL Queries
15m54s - Counting and Aggregating
8m17s - Prisma Middleware
13m12s - Updating our API for Soft Delete
12m57s - Prisma JSON Type
4m48s - Creating a Row with a JSON Column
6m29s - Updating JSON Columns, Part 1
11m23s - Updating JSON Columns, Part 2
4m58s - Where To Go From Here
1m10s
Comments
Kris
6 months ago
Hey Ryan,
For the Directory model in the schema in this video, I'm getting a
Ambiguous self relation detected. The fields 'parent' and 'directories' in model 'Directory' both refer to 'Directory'. If they are part of the same relation add the same relation name for them with '@relation(<name>)'.
The fix for me was to add the relation to the parent field too:
parent Directory? @relation("DirectoryToDirectory", fields: [parentId], references: [id])
Kris
6 months ago [edited]
Kris
6 months ago [edited]
Kris
6 months ago [edited]
Kris
6 months ago [edited]
Kris
6 months ago [edited]
Kris
6 months ago [edited]
Want to join the conversation?
Become a Pro member today!