Hey everyone! We're looking to make the switch to ...
# orm-help
d
Hey everyone! We're looking to make the switch to Prisma from TypeORM at my company (it has come so far since I last saw it in Prisma 1, congrats to the team!) and I'm curious if anyone has found a workaround for model/entity subscribers/hooks. For example TypeORM supports subscribing to saves, deletes and other events where you can run some clean up code. We have a few cases where we need to fire off requests to 3rd party services when a model is deleted directly or through a cascade. This is really common in larger frameworks supporting the active record pattern, so I'm curious if anyone has tackled this with any success when they switched to Prisma.
n
Hey Darian 👋 it sounds like Prisma Client’s middleware might be suitable for this use case? Another workaround could be to configure DB-level triggers.