Optimize in a Constructor
I use prisma in a nest.js api and instantiate a globally used version in a constructor - I've been trying to get optimize to work, and while the console log says it is set up and good to go, no data ever flows through. It looks like this - any idea what I'm doing wrong, or how to do this correctly?
3 Replies
Hi @justinhandley
Can you please use this example to see how to properly setup Optimize in a Nestjs project?
GitHub
GitHub - nurul3101/Optimize-NestJS
Contribute to nurul3101/Optimize-NestJS development by creating an account on GitHub.
That is amazing, thanks @RaphaelEtim - but it still isn't working form me.. Here is my latest.
Hi @justinhandley
Can you please take a look at this issue comment
GitHub
Ability to extend
PrismaClient
class w/ Client Extensions before ...Problem Within NestJS, the common solution to implementing an injectable Prisma Client instance is to extend PrismaClient and add the onModuleInit and enableShutdownHooks functions required by Nest...