PrismaP
Prisma2y ago
9 replies
kgtrey1

how to import prisma client on a client without compromising credentials

Hello, I would like to build an app using a monorepo. Since my backend will be using nestjs and my application react native. I would love to use prisma as an ORM to define my entities and reuse the types in both my nestjs and rn applications.

While it’s not a concern importing prisma client on my backend, I’m afraid that doing so on react native may lead to credentials leaks

Is there a way to get the types and the types only on my rn app?
Was this page helpful?