PrismaP
Prisma2y ago
3 replies
ty

Can't see relation field in Types

Hi,

How do I make stages visible in my code? (What I mean is in the image attached, stages doesn't appear on the types for ProjectPage.)
model ProjectPage {
  id        String         @id @default(auto()) @map("_id") @db.ObjectId
  stages    ProjectStage[]
  pageName  String
  Project   Project        @relation("project_projectpage", fields: [projectId], references: [id])
  projectId String         @db.ObjectId

  lastUpdatedAt DateTime
}
image.png
Was this page helpful?