What would be your suggestion/better alternatives? Especially considering further migration to Prisma2. I would be much appreciated 🙏
a
Ahmed
05/14/2020, 4:33 PM
with prisma 2 you can change schema.prisma path so you can define one file for two services ??
r
RoMay
05/14/2020, 4:39 PM
the services are located in separated repositories, I am not sure if this would work
RoMay
05/14/2020, 4:39 PM
would you recommend to extract Prisma-related stuff into a separate library and import the client into each of the services?
r
Ryan
05/15/2020, 7:26 AM
Hey @RoMay 👋
Yes one approach you could take as you have separate repos is to create a library specific for the Prisma models and generate and then import that into respective repos.
Another approach that you could be interested in would be workspaces (if you want to add it in a single repo).
🙏 1
👍 2
r
RoMay
05/15/2020, 1:22 PM
thanks @Ryan, I'll migrate the prisma schema and generated files into a separate library