i get this warning…. ```warn(prisma-client) Alread...
# orm-help
p
i get this warning….
Copy code
warn(prisma-client) Already 10 Prisma Clients are actively running.
import { PrismaClient } from ‘@prisma/client’; class Prisma { private static client: PrismaClient; static getClient() { if (!this.client) { this.client = new PrismaClient(); } return this.client; } } export default Prisma;
r
You would need to instantiate it like this.