Closed sgentile closed 2 years ago
Did you setup the Upload
scalar correctly? You've got it in your schema SDL, but what about resolvers?
Are you using an outdated version of Apollo Server that ships a conflicting older version of graphql-upload
that needs to be disabled in Apollo Server options?
If you still have this issue and have determined that it is a graphql-upload
bug and you’re able to provide minimal reproduction steps, we can reopen.
@jaydenseric
I have same problem and investigating for last two days.
Package versions;
"apollo-server": "3.6.3", "apollo-server-express": "3.6.3" "graphql-upload": "13.0.0", "graphql": "15.8.0",
After upgrading Apollo Server v2 to v3, not fixed my problem. I've added express middleware and also my resolver looks like;
Query: { Store: Store.getWidgets, Upload: GraphQLUpload, },
When I upload a file I got this object and createReadStream returns undefined in the file object; Other properties such as filename, mimetype and encoding are reachable.
args { image: { promise: {}, file: { filename: 'istanbul.jpg', mimetype: 'image/jpeg', encoding: '7bit' } } }
Did you setup the
Upload
scalar correctly? You've got it in your schema SDL, but what about resolvers?Are you using an outdated version of Apollo Server that ships a conflicting older version of
graphql-upload
that needs to be disabled in Apollo Server options?
yes to setting up scalar - and no to the conflicting older version
I have a server setup as below. I've added the graphqlUploadExpress - I'm seeing the file come through, however it's missing createReadStream ?
schema