SoxZz5
PPrisma
•Created by SoxZz5 on 11/2/2024 in #help-and-questions
Optimize + NestJS not working
GM, I checked the whole forum before asking
I tried to test with the provided example :
https://github.com/nurul3101/Optimize-NestJS/tree/main
But without success.
This is how we are instantiating our prisma service :
We use some multiSchema and prismaSchemaFolder dunno if it can interfere
On nestjs :
This is used to create a typed Extended Instance of the prisma client
Then we use the prisma.service exported by the prisma.module :
The super must create an instance of extended client with extension (it work for pulse not for optimize by the way)
and the return if instance exist is too prevent opening too much connection
Happy to provide more code if it can help let me know, feel free to ping me
7 replies