Hi @all,
Prisma should be transactional on nested creates right? But unfortunately it isn't ☹️. In the following mutation the connection of the inner object "Order" throws an Authorization error. BUT: A new product is still created.
It this correct behavior? Is it possible to abort the creation of the product?
mutation createProductMutation {
createProduct(data: {
name: "test36",
orders:{
create: {
customer: {
connect: {
id: "81c9cb84-6b9e-4b61-b067-33d83d813043"
}
}
}
}
}) {
name
}
}