Is it possible to do a Request Pipeline transforma...
# prisma-whats-new
m
Is it possible to do a Request Pipeline transformation on record CREATE and UPDATE ?
a
If you need it sync and before save, you need to duplicate the code and create two RP hooks
m
Yeah, I thought so. Bummer. It’s for my slug function 🙂 Need to handle the case where a user updates the title.
a
Slug could actually be done after save as well, so the SSS suggestion from @mlyons that just got deleted wasn't so bad after all
m
I deleted it because I thought I was totally wrong for the use case. SSS don't allow you to mutate the request data right? So if you're trying to do that then you'll need to be in the RP
m
Yes indeed.
a
@mlyons True, but you can still call an update mutation from a SSS, so it's still valid for a lot of cases.