Prisma schema folder
I'm running v6. Is [schema folders] still in preview.
I'm getting:
Seems it can't detect the other tables in adjacent schema files in the same folder.
2 Replies
Solution
Running
prisma format
resolved the issue. What it did. I have no idea 🤷♂️Yes, the multi-file Prisma schema feature (also known as schema folders) is still in preview. The
prisma format
command is a tool that automatically formats your Prisma schema and can also add missing relation fields in certain cases. In your case, it added the missing opposite relation field on the model User
.