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

Updated readme file and comment in GraphQLUpload #370

Closed NivSv closed 1 year ago

NivSv commented 1 year ago

I have tried to use 'graphql-upload' today and I couldn't find the FileUpload interface for a while I only realized that I could take it from the graphql-upload/Upload.mjs file after I check the types of the package aka @types/graphql-upload so I figured I might make it easier for the next person and add it to the readmefile and fix that comment in GraphQLUpload.mjs file in line 69 from import type { FileUpload } from "graphql-upload/processRequest.mjs"; to * import { FileUpload } from 'graphql-upload/Upload.mjs'; which worked for me