-
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
ReactNative upload file #302
Comments
i just figured it out, yes it supports it and it goes like this : import { ReactNativeFile } from 'extract-files';
const mutation = gql`
mutation uploadFile($file: Upload) {
uploadFile(file: $file)
}
`;
graphQLClient.request(mutation, {
file: new ReactNativeFile({ uri, type, name }),
}); |
This does not seem to work for me |
Closed
I see, we had to switch to apollo due to this :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see that the docs mention Upload in Browser and Node.
Does graphql-request support uploading files in react-native ?
The text was updated successfully, but these errors were encountered: