Hey guys :wave: Anybody knows, is it bug or featur...
# orm-help
a
Hey guys 👋 Anybody knows, is it bug or feature? Have some structures as
Copy code
type Exercise {
    id: ID! @unique
}
type Test {
    id: ID! @unique
    exercises: [Exercise!]!
}
Problem In existing
Test
I wanna to remove some
Exercises
by
IDs
(for example, now there are 3
Exercises
with
IDs
"a", "b", "c"
(for simplicity)). Few days ago I just sent mutation with
exercises: { connect: ["a", "b"] }
and it was working. Now I need to use
disconnect
, it's no so conveniently in my app's architecture. ALSO, I can't even remove
Exercises
from
Test
using Prisma UI, only add 😞
Try to use
onDelete: CASCADE
a
it deletes nodes, not unlink. Am I right?