I noticed PRE_WRITE function hook is deprecated......
# prisma-whats-new
m
I noticed PRE_WRITE function hook is deprecated... if I need to synchronously call an external API and then update the payload written to graphcool, is the best option now to use the TRANSFORM_ARGUMENT hook, or use a schema extension?
n
TRANSFORM_ARGUMENT
is the way to go
of course, schema extensions can also be used in special cases
m
thanks @nilan - another question if I may,
fromEvent
doesn't appear to work with a TRANSFORM_ARGUMENT function - there is no
context
on the event. Is that expected?
it is however working for a schema extension function