You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description and expected behavior
The upsert operation on multiple nested relations is applied only to the last relation. Works fine with pure PrismaClient.
Environment (please complete the following information):
ZenStack version: 1.10.0
Prisma version: 5.10.2
Database type: postgres
Additional context
Data model:
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Project {
id String @id @unique @default(uuid())
Fields Field[]
@@allow('all', true)
}
model Field {
id String @id @unique @default(uuid())
name String
Project Project @relation(fields: [projectId], references: [id])
projectId String
@@allow('all', true)
}
Description and expected behavior
The upsert operation on multiple nested relations is applied only to the last relation. Works fine with pure PrismaClient.
Environment (please complete the following information):
Additional context
Data model:
Code:
When using pure PrismaClient this is the result
but with enhanced prisma client, this is the result
The text was updated successfully, but these errors were encountered: