Closed steinathan closed 4 years ago
Fixed, i upgraded my nexus version to ^0.27.0-next.7
, and removed the express middleware:
server.express.use(
'/graphql',
graphqlUploadExpress({ maxFileSize: 10000000, maxFiles: 5 }),
)
from my app.ts
, forcibly bumped graphql-upload
and added
"resolutions": {
"graphql-upload": "^11.0.0"
},
to my package.json
and everything worked
Nexus Report
Screenshots
Description
From the docs https://nexusjs.org/components-standalone/schema/api/api-scalarType#example-of-upload-scalar the
export const Upload = GraphQLUpload
doesn't work at all but in the api.graphql there's aNEXUS__UNKNOWN__TYPE
somewhere but when i changed it toschema.scalarType(GraphQLUpload)
it worked but then I keep getting this errorBut am sure am sending the right params
but ive also noticed this from
$ npm ls
nexus is using
apollo-server-express
that in turn uses an old version ofgraphql-upload