-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to send multipart request #132
Comments
I need this too... |
Hello you can send multipart request using below method via Postman First You have to define your type with GraphqlScalar E.G, **{ First Field { "query": "mutation ($file: Upload!) { singleUpload(file: $file) { id } }", "variables": { "file": null } } |
good .... |
any better example? documentation? |
@iamfrntdv you can see request format here https://github.com/jaydenseric/graphql-multipart-request-spec |
@ferso What do you mean by "This works for me"? What did you implement? @mayankpandav We're talking about passing multipart data through Now the real question is: How can we implement a multipart request with |
@nagman are you talking about client side or server side? |
@mayankpandav Client. |
@mayankpandav Yet we're on the I don't understand the point with this topic. |
I too would like to see file upload support in graphql-request using the multipart specification. Is this issue about that and if so why is it closed? AFAIK multipart support is not implemented in graphql-request. |
Why is this closed? |
You might want to try this package: https://github.com/dividab/graphql-simple-fetch |
Bump for this. I think this feature would be great as well, I'm proxying graphql requests and this was the only feature left to make it complete. |
it would be great to have this |
I've created PR to solve this issue #175 |
Meanwhile I've published https://www.npmjs.com/package/awesome-graphql-client with GraphQL Upload support in NodeJS and browsers which also solves #61 and #10 |
Thanks @lynxtaa, exactly what I needed |
how we can upload files through mutation ?
The text was updated successfully, but these errors were encountered: