Emi
05/02/2018, 12:04 PMtype Section {
id: ID! @unique
title: String!
subsections: [Section!]! @relation(name: "SectionSubsections", onDelete: CASCADE)
insideSection: Section @relation(name: "SectionSubsections")
}
I'm deleting a Section node and I expect all subsections to also being deleted (due to the onDelete: CASCADE
). Nevertheless, all subsections are not deleted, they just "disconnects" its relation from insideSection
field. What am I doing wrong?