Hi - I am using Prisma with Nuxt 3 and I recently ...
# orm-help
v
Hi - I am using Prisma with Nuxt 3 and I recently upgraded to rc12 (release candidate 12) and I am getting the following error.
1
here is the object causing the error
Copy code
model Reply {
    id      Int    @id @default(autoincrement())
    content String @default("")
    // author
    author  User   @relation(fields: [authId], references: [authId])
    authId  String

    comment   Comment? @relation(fields: [commentId], references: [id])
    commentId Int

    parentReplyId Int?
    parentReply   Reply?  @relation(name: "parent-reply", fields: [parentReplyId], references: [id], onDelete: NoAction, onUpdate: NoAction)
    replies       Reply[] @relation(name: "parent-reply")

    createdAt DateTime @default(now())
    updatedAt DateTime @updatedAt
}
when I change to Cascade then prisma says that I need to change back to NoAction
r
Hi Venn 👋 You would need to use
RESTRICT
because
NoAction
at the moment does nothing. See this link.
v
got it. that worked. thank you
🙌 1
r
You're welcome.