Hi I'm trying to upload a file using GraphQL and I'm getting the following error
Error: GraphQL error: createReadStream is not a function
at new ApolloError (bundle.esm.js:63)
at Object.next (bundle.esm.js:1004)
at notifySubscription (Observable.js:135)
at onNotify (Observable.js:179)
at SubscriptionObserver.next (Observable.js:235)
at bundle.esm.js:866
at Set.forEach (<anonymous>)
at Object.next (bundle.esm.js:866)
at notifySubscription (Observable.js:135)
at onNotify (Observable.js:179)
The following is my mutation
mutation UploadProfile($file: Upload!) {
upload(file: $file) {
id
}
}
Hi I'm trying to upload a file using GraphQL and I'm getting the following error
The following is my mutation
And the following is how I post my image
I don't know why it's not working and I'm not finding the solution on the internet. Please help