Javascript – Prisma: how can I get a field, name, with another field which is set Foreign key?
Please let me ask. schema.prisma model User { id Int @id @default(autoincrement()) name String // Not Null self Friend[] @relation("self") friend Friend[] @relation("friend") } model Friend { id Int @id @default(autoincrement()) user User @relation("self", fields: [userId], references: [id]) userId Int…