Hello! I’m trying out prisma for my company, got a...
# orm-help
r
Hello! I’m trying out prisma for my company, got a schema built out that works and can generate the client, but I cant figure out how this is supposed to work for separate services, will each new service we build out need to have a local copy of our
schema.prisma
? if you have, say, 10 different microservices, that want access to your db, how would you synchronize and version the schema across all of them?
okay i found this: https://github.com/prisma/prisma/discussions/5526 answered my question for the most part
n
Hey Robin 👋 You can create a private npm package which exposes
PrismaClient
and the types from your models and you can import them into your services. I have mostly seen users take this approach.