illuday
08/12/2018, 12:03 AMMODEL :
type A {
b: B! @relation(name: "MyRelation", onDelete: SET_NULL)
}
type B {
as: [A!]! @relation(name: "MyRelation", onDelete: SET_NULL)
}
MUTATION :
deleteB(id: ID!): B!
return ctx.db.mutation.deleteB({ where: { id } });
It always return me : The change you are trying to make would violate the required relation 'MyRelation' between A and B
Have you an idea ? Thanks 🙂