how to delete uploaded file from a resolver functi...
# prisma-whats-new
o
how to delete uploaded file from a resolver function?
m
I imagine the same way you do it on the client side by calling the api
o
how to call api from resolver? use graphql-request?
e
Look at email-password template. They do something like this: const graphcool = fromEvent(event) const api = graphcool.api('simple/v1')
o
ok, thanks. I've tried with graphql-request and it seems working. but graphcool.api probably better way, is it documented anywhere?