I have a simple model in the schema with one-to-many self relations as shown below, I want to create a parent with it's children at the same time (transaction), how to achieve this?
model X{
id Int @id @default(autoincrement())
name String
childXs X[] @relation("childX")
parentX X? @relation("childX", fields: [parentXId], references: [id])
parentXId Int?
}