Join Slack
Powered by
how to delete uploaded file from a resolver functi...
# prisma-whats-new
o
Oleg Galaburda
12/08/2017, 2:39 PM
how to delete uploaded file from a resolver function?
m
max
12/08/2017, 3:08 PM
I imagine the same way you do it on the client side by calling the api
o
Oleg Galaburda
12/08/2017, 3:53 PM
how to call api from resolver? use graphql-request?
e
Emi
12/08/2017, 4:09 PM
Look at email-password template. They do something like this: const graphcool = fromEvent(event) const api = graphcool.api('simple/v1')
o
Oleg Galaburda
12/08/2017, 4:13 PM
ok, thanks. I've tried with graphql-request and it seems working. but graphcool.api probably better way, is it documented anywhere?
Open in Slack
Previous
Next