veksen
07/16/2018, 4:12 PM{
name: "yeye",
description: "yaya",
rows: {
create: [
{ columns: { create: [{ type: "Text", content: "text 1" }, { type: "Image", content: "" }] } },
{ columns: { create: [{ type: "Text", content: "text 2" }, { type: "Text", content: "text 3" }, { type: "Text", content: "text 4" }] } }
]
}
}
(Pretty much I want to wipe everything and just re-create everything on update, instead of trying to do a delta of existing/non-existing, plus handling deleting etc… to me the deletion was a simpler)Errorname
07/16/2018, 9:24 PM@relation(name:"...", onDelete: CASCADE)
.
Docs: https://www.prisma.io/docs/reference/service-configuration/data-model/data-modelling-(sdl)-eiroozae8u#the-@relation-directive