Closed ZiggyQubert closed 3 weeks ago
Hi @ZiggyQubert I can't reproduce at the moment using our example application, can you give me the value or URL (especially searchParams) to try and identify the problem ?
if you add these models to your schema on the example app it will have the issue
model Flow {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
createdAt DateTime @default(now())
name String
flowVersions FlowVersion[] @relation("FlowVersion")
}
model FlowVersion {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
createdAt DateTime @default(now())
name String
flowId String? @db.Uuid
flow Flow? @relation("FlowVersion", fields: [flowId], references: [id], onDelete: Cascade)
}
Description
When using the advanced search to search within linked tables the generated prisma object seams to be malformed
Reproduction URL
n/a
Reproduction steps
I have a model
flowVersion
with a relationflow Flow? @relation("FlowVersion", fields: [flowId], references: [id])
When I add a filter to search by the ID of a flow the filtering fails with a prisma error
Invalid
prisma.flowVersion.findMany()invocation
the applicable part of the query winds up being
and I believe it should be
Next router
App router
Next Admin version
6.1.6
Screenshots
No response
Next Admin options
No response
Logs
Browsers
Chrome