Join Slack
Powered by
Hey folks, what would be the right way to instanti...
# orm-help
a
Aayush Rajvanshi
08/08/2021, 4:14 PM
Hey folks, what would be the right way to instantiate Prisma Client in NestJs while running in AWS Lambda? Please suggest.
r
Ryan
08/09/2021, 7:36 AM
@Aayush Rajvanshi
👋 Single
PrismaClient
instance, outside the lambda handler.
a
Aayush Rajvanshi
08/09/2021, 8:55 AM
@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
Ryan
08/09/2021, 2:45 PM
Here’s a video here that shows a basic one:
https://www.youtube.com/watch?v=mmbd5hcQUaY
â–¾
a
Aayush Rajvanshi
08/09/2021, 5:18 PM
I've seen this video. This doesn't explain how should we use nest and prisma with AWS lambda.
3
Views
Open in Slack
Previous
Next