atatakobry
07/20/2018, 12:03 PMtype 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 😞Haider Malik
07/20/2018, 12:15 PMHaider Malik
07/20/2018, 12:16 PMonDelete: CASCADEatatakobry
07/20/2018, 12:20 PM