Prisma vs Drizzle: Handling Relations with Prisma

preview_player
Показать описание

Prisma offers an elegant syntax for defining relations using the Prisma Schema Language. Let's see how to use those defined relations when querying for data in this lesson.
Рекомендации по теме
Комментарии
Автор

Hey man! very useful video, answer me a lot of doubts! I'm new in this kind of development using prisma and I'm doing something like an app here just to leran how to do it and I'm trying to create a notification table where I have the fields from and to in the database, but I'm having some issues when try to setup on prisma! Do you know how to do it? I try this "user User @relation(fields: [from, to], references: [id, id])" but its not working! 😳

rawnato