PrismaP
Prisma13mo ago
4 replies
Paul

Prisma schema folder

I'm running v6. Is [schema folders] still in preview.

I'm getting:

Error validating field `user` in model `DamFile`: The relation field `user` on model `DamFile` is missing an opposite relation field on the model `User`. Either run `prisma format` or add it manually.Prisma


Seems it can't detect the other tables in adjacent schema files in the same folder.
Solution
Running prisma format resolved the issue. What it did. I have no idea 🤷‍♂️
Was this page helpful?