help with invalid prisma invocation

I'm getting
Invalid `prisma.invite.findMany()` invocation:
Error converting field "groupId" of expected non-nullable type "String", found incompatible value of "null".
Invalid `prisma.invite.findMany()` invocation:
Error converting field "groupId" of expected non-nullable type "String", found incompatible value of "null".
pictured below is an entry in the db im looking at from the prisma client, and here's the model in question
model Invite {
userId String
groupId String
User User @relation(fields: [userId], references: [id])
Group Group @relation(fields: [groupId], references: [id])

@@id([userId, groupId])
}
model Invite {
userId String
groupId String
User User @relation(fields: [userId], references: [id])
Group Group @relation(fields: [groupId], references: [id])

@@id([userId, groupId])
}
I have no clue what happened, but all of this started breaking down once i removed a regular id from the invite model (i thought i only needed the multifield id)
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server