We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a prisma model with some recursive relationship like below,
datasource db { provider = "sqlite" url = "file:./dev.db" } model Task { id Int @id @default(autoincrement()) title String description String? completed Boolean @default(false) dueDate DateTime? createdAt DateTime @default(now()) parentTaskId Int? parentTask Task? @relation("ParentSubTasks", fields: [parentTaskId], references: [id]) subTasks Task[] @relation("ParentSubTasks") }
the generated prisma.rs contains a struct with recursive types that lead to an infinite size error.
prisma.rs
infinite size
#[derive(Clone, Serialize, Deserialize, Debug, QueryInternal)] pub struct Task { ... pub parent_task: Option<Task>, // RECURSIVE HERE ... }
The solution would be to Box said recursive types
Box
The text was updated successfully, but these errors were encountered:
omadoyeabraham
No branches or pull requests
Given a prisma model with some recursive relationship like below,
the generated
prisma.rs
contains a struct with recursive types that lead to aninfinite size
error.The solution would be to
Box
said recursive typesThe text was updated successfully, but these errors were encountered: