notiz-dev / nestjs-prisma

Easy Prisma support for your NestJS application
https://nestjs-prisma.dev
MIT License
587 stars 50 forks source link

Can we remove additional `client` field after use cutom client? #92

Closed SnowingFox closed 7 months ago

SnowingFox commented 7 months ago

for example, we want this

this.customPrismaService.user.findByEmail(email)

but now is this

this.customPrismaService.client.user.findByEmail(email)

we need write client field additional, so is there any method to remove this?

marcjulian commented 7 months ago

Hi @SnowingFox i haven't found a better solution for providing CustomPrismaService without the additional client field. I have written about it in more details https://github.com/notiz-dev/nestjs-prisma/issues/88#issuecomment-1924445421