jaydenseric / graphql-upload

Middleware and a scalar Upload 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.43k stars 132 forks source link

No docs for how to use graphql-uploads with node 14 + apollo v2 #266

Closed zodman closed 3 years ago

zodman commented 3 years ago
import { GraphQLUpload } from 'graphql-upload';
const resolvers = {
...
Upload: GraphQLUpload 
}

 const server = new ApolloServer({
    resolvers,
    typeDefs,
    uploads:false
)

but is incomplete .....

zodman commented 3 years ago

I can only reference https://github.com/apollographql/apollo-server/issues/5230

jaydenseric commented 3 years ago

That is more of an Apollo Server question than a graphql-upload one. Here are the docs:

https://www.apollographql.com/docs/apollo-server/v2/data/file-uploads/#uploads-in-node-14-and-later