Replies: 1 comment
-
Hi @bramses 👋
No, Prisma Studio doesn't offer built-in programmatic lifecycle hooks.
Currently, Prisma ORM does not have programmatic lifecycle hooks you can call. However, you can leverage Prisma Client Extension query component type to achieve triggers. Also, Prisma has introduced a managed change data capture service called Pulse, which allows applications to update in real-time as soon as the database changes. However, this is not exactly the same as lifecycle hooks, as it is more about reacting to changes in the database rather than intercepting and potentially altering operations before they happen. A Short video on Pulse |
Beta Was this translation helpful? Give feedback.
-
Question
If I update the value of a column in Prisma, is it possible to have a programattic lifecycle hook notice this change and run a function on the server?
How to reproduce (optional)
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
// Add your schema.prisma
// Add any relevant Prisma Client queries here
OS:
Database:
Node.js version:
Run
prisma -v
to see your Prisma version and paste itBeta Was this translation helpful? Give feedback.
All reactions