Join Slack
Powered by
hey how can i split my schemas into multiple files...
# orm-help
a
Andres - Andreshvas
06/08/2021, 7:10 PM
hey how can i split my schemas into multiple files?
b
Benjamin Klotz
06/08/2021, 7:16 PM
There is a open
GH issue
for that, meanwhile you could use a npm script workaround
Copy code
"generate-schema": "cat src/*/*.prisma > prisma/schema.prisma"
a
Andres - Andreshvas
06/08/2021, 7:19 PM
yep but that’s a problem for relations because you can not export one model to another
4
Views
Open in Slack
Previous
Next