Hi guys, we are buliding microservies in Node.js (...
# orm-help
a
Hi guys, we are buliding microservies in Node.js (TS) and using Prisma. For example we have different microservices, core (auth, settting), content(countries, regions...) and hotel. We are trying to keep the whole prisma schema in the core app. Now swhen I started on the content the Prisma client can access model types. Then we are getting this error message: "Property 'locationCountry' does not exist on type 'PrismaClient<PrismaClientOptions, never, RejectOnNotFound | RejectPerOperation>'.ts(2339) View Problem" If anyone has experience with similar setup or know how to fix it, we would be very grateful. Also if interesting we can hire for a couple of hours. Also I have been using the command npx prisma db push, cant it have anything with the issue. Also how can I migrate without reset database?
👀 1
n
Hey Alfred 👋 To answer your question regarding using migrate without resetting your database, you are looking to baselining your database. For the error message that you are receiving, how are you importing types from your core app to your other apps? Have you created an npm package?