jaydenseric / graphql-upload

Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
https://npm.im/graphql-upload
MIT License
1.42k stars 131 forks source link

export graphqlUploadExpress #374

Closed kamalkech closed 1 year ago

kamalkech commented 1 year ago

"graphql-upload": "^16.0.2", "@types/graphql-upload": "^16.0.0",

import { graphqlUploadExpress } from 'graphql-upload';

Module '"graphql-upload"' has no exported member 'graphqlUploadExpress'

image

jaydenseric commented 1 year ago

What makes you think you should be able to import like that?

kamalkech commented 1 year ago

because before i using old version / 16.0.0 and it s work, the idea is in nestjs app i want to enable upload file + graphql

jaydenseric commented 1 year ago

Firstly, if you were using an old version, and you update major versions, look at the release notes about the breaking changes:

https://github.com/jaydenseric/graphql-upload/releases

Changes to exports are documented there.

The current exports are documented here:

https://github.com/jaydenseric/graphql-upload#exports

And release notes and documentation aside, you can just look at the exports and see what can be imported:

kamalkech commented 1 year ago

yes i already check the documentation, so i need to check again how can implement this with graphql and nestjs, but current i need to downgrand to old version