With this `datamodel.prisma` ```type Product{ id...
# orm-help
c
With this
datamodel.prisma
Copy code
type Product{
  id: ID! @id
  images: [Image] @relation(onDelete: CASCADE)
}
When this is called, would you expect the images to all be deleted for that product?
Copy code
await context.prisma.deleteProduct({ id: args.id })
Because that’s totally not what’s happening. Images rows are being left hanging with nothing linking to them.
r
Hey @Corey Snyder 👋 Did you
connect
to those images to the
Product
while creating the Image? If not, that could be the issue.