Hello, trying to understand Prisma Client here. Wh...
# orm-help
h
Hello, trying to understand Prisma Client here. What is the recommended approach if my app code is separate from the prisma cluster? Then I can't simply
require('./generated/prisma')
anymore
s
Can you elaborate a bit @HarryC?
h
@schickling Hi, from my understanding, you use Prisma Client to make simplified method calls to the graphql api from the app. My app lives on one server, and my graphql server (with the prisma.yml) lives in another server, so I can't require the generated client files locally on the app
So I'm wondering what the process should be. My guess is that I should
prisma generate
where the prisma.yml is and copy the
generated
folder to where my app is?
I might be completely misunderstanding the purpose of Prisma Client, so sorry if my question doesn't make sense at all 😅