Hi guys, is there a way to add a callback function...
# orm-help
p
Hi guys, is there a way to add a callback function when a record is created/updated? Similar to what they have in Strapi.
r
@Prince ๐Ÿ‘‹ There isnโ€™t a specific callback function but you could perform something like this with native database triggers. I would suggest creating a feature request for this here so that we can look into this ๐Ÿ™‚
p
Thanks @Ryan ๐Ÿ™‚
l
@Prince What I have been doing, is to hook into the relevant resolvers, then do whatever when the prisma call returns.
p
@Lars Ivar Igesund I am a bit new to Prisma. Do you know any example code or articles I could look at to understand it better?