Hey folks, what would be the right way to instanti...
# orm-help
a
Hey folks, what would be the right way to instantiate Prisma Client in NestJs while running in AWS Lambda? Please suggest.
r
@Aayush Rajvanshi 👋 Single
PrismaClient
instance, outside the lambda handler.
a
@Ryan This works if I'm not using NestJs but how do I inject that PrismaClient in NestJs? Is there any example available for NestJs + Prisma?
r
Here’s a video here that shows a basic one:

https://www.youtube.com/watch?v=mmbd5hcQUaYâ–¾

a
I've seen this video. This doesn't explain how should we use nest and prisma with AWS lambda.