PrismaP
Prisma2y ago
2 replies
ty

Relation field not appearing in model.createMany

//schema:
model ProjectPage {
  id            String         @id @default(auto()) @map("_id") @db.ObjectId

  //this does not appear as shown in the photo
  stages        ProjectStage[]

  pageName      String
  Project       Project        @relation(fields: [projectId], references: [id])
  projectId     String         @db.ObjectId
  lastUpdatedAt DateTime       @default(now())
}

Help would be appreciated, thanks. Yes I've run npx prisma generate.
image.png
Was this page helpful?