Prisma format fails with disambigious relations
Hey all, not sure if this is my own error here. But I've got the below schema that fails to get formatted by prisma format. I've got quite a few relations setup on a user model. However, running prisma format fails when trying to insert the relations onto the user model. I've added both the errpr and my source schema below. It seems like prisma format fails to name the ambigious relations on the user model.
3 Replies
yeah i had to manually add my disambiguous relations
seems this must be a bug. Found this issue filed: https://github.com/prisma/prisma/issues/24132
GitHub
Disambiguating relations incorrectly auto formatting · Issue #2413...
Bug description When creating a model that has disambiguous relations with a relational db the formatter prisma format will generate the @relation(fields: [authorId], references: [id]) automaticall...
bumping this