Closed BraveEvidence closed 3 years ago
I can't tell what's wrong with your project, sorry to hear you've been finding it tricky getting set up. graphql-upload
is actually a pretty simple integration and it's usually problems relating to Apollo that trip people up; in such situations please refer to Apollo for help.
I am using node v14.17.0,"apollo-server-express": "^2.25.0", "graphql-upload": "^12.0.0"
I am trying to upload an image but i dont get createReadStream from the image which i upload from graphiql. I am using Altair graphiql
Here is my index.js
In my typedefs i have mentioned
and my resolvers have
Upload: GraphQLUpload,
I have tried following this issue https://github.com/apollographql/apollo-server/issues/3508 but it doesn't seem to work for me
My uploaded image contains following
{"filename":"download123.jpg","mimetype":"image/jpeg","encoding":"7bit"}