Closed kamalkech closed 2 years ago
two questions. Have you already written scalar Upload
in any of your schemas? And did you defined the Upload in your resolvers like that {resolvers: {Upload: GraphQLUpload}
?
@kamalkech hopefully you've solved the problem by now; feel free to share what was wrong for others that come across this issue.
Closing because this issue doesn't really fit into the category of an actionable graphql-upload
bug report or feature request.
main.ts:
app.module.ts:
file.resolver.ts:
@Mutation(() => Boolean) async uploadFile( @Args({ name: 'file', type: () => GraphQLUpload }) file: FileUpload, ) { .... return true; }
i get error message: