PrismaP
Prisma8mo ago
3 replies
DeathlyNocturnal

PrismaClient export from generated client.

Hey, this may be an irrelevant feature generally, but it's something I would really appreciate, which is can we try and make it so the client export is always defined as "PrismaClient", at the moment you can do:

import { PrismaClient } from './your/generated/client';


But the output of:

PrismaClient.name
// = "r"


Whereas it used to be "PrismaClient".

I am using dependency injection in a library and we use the class name as the injection key but since your generator instead names it r and I assume potentially other letters, wondering if we can standardise it so it stays the same regardless and for that specific class it doesn't get "minified" to a letter.

Thanks.
Was this page helpful?