Corey Snyder
08/22/2019, 1:15 AMEmailVerificaton tied to them. I think this has to do with the relationship type that is set. Do you know how I can revise the model so that deletes on User automatically delete associated `EmailVerification`s
type User {
id: ID! @id
name: String!
email: String! @unique
emailVerification: [EmailVerification] @relation(name: "UserEmailVerifications")
}
type EmailVerification{
id: ID! @id
verificationCode: String! @unique
user: User! @relation(name: "UserEmailVerifications")
}Corey Snyder
08/22/2019, 2:12 AMtype User {
id: ID! @id
name: String!
email: String! @unique
emailVerification: [EmailVerification] @relation(name: "UserEmailVerifications", onDelete: CASCADE)
}