Soooo… in a request pipeline function, I see that ...
# prisma-whats-new
a
Soooo… in a request pipeline function, I see that data transformations are ignore. If this is the case, how can I store data from the external API on our object (

http://d.pr/i/M5Nyny.png

)
a
@auser Like it says in the next line, in a
TRANSFORM_ARGUMENT
hook instead of
PRE_WRITE
a
Wait, can I return a promise inside a TRANSFORM_ARGUMENT then?
I thought
PRE_WRITE
is where you call the API function, but if I can do it in transform argument, it is straight-forward
a
You can do exactly the same in both hooks AFAIK, the only difference is that you cannot transform the data in
PRE_WRITE
.
👍 1
a
sweet
thanks!
a
Let me know if it worked out.
a
trying now
n
@agartha is right 🙂
🙏🏻 1