DEV Community

Discussion on: Active Storage meets GraphQL: Direct Uploads

Collapse
 
leomayleomay profile image
Hao Liu

great write up for how to use ActiveStorage with GraphQL, I am using Apollo at the client side, I am wondering how your client works to send the request to GraphQL endpoint to create the direct upload, in my case, I have to wrap it in a component to do the mutation, not sure how you do it

Collapse
 
palkan_tula profile image
Vladimir Dementyev

We stopped using Apollo a while ago, now we use a little bit enhanced fetch.

Here is the example of direct upload functionality from our React Native client: gist.github.com/Saionaro/7ee0e2c02...

Collapse
 
leomayleomay profile image
Hao Liu

cool, thank you for sharing that :)