Join Slack
Powered by
Hello ! How to add a middleware (Hook) with Prism...
# orm-help
m
Mathie
04/13/2022, 9:31 AM
Hello ! How to add a middleware (Hook) with Prisma & NestJS ? (to hash the password before save the document)
n
Nurul
04/13/2022, 9:52 AM
Hey Mathie 👋 It seems you are looking for
prisma.$use
API. Here’s a reference for using it -
Middleware
m
Mathie
04/13/2022, 12:04 PM
Thanks!
5
Views
Open in Slack
Previous
Next