Spring Boot GraphQL handle file upload in controller instead of implementing the GraphQLMutationResolver #191
Unanswered
MUsman1992
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @oliemansm
I have implemented how to handle file upload in spring boot through GraphQL service by implementing GraphQLMutationResolver . But I want to know that is there any way to directly handle it in controller?I want to do something like this
`
`

The above code does not work but if I try to do it by creating a separate class that implements GraphQLMutationResolver like you have done in your project https://github.com/graphql-java-kickstart/samples/blob/master/file-upload/src/main/java/upload/UploadMutation.java code works. Actually my all services are in controller but for file upload service I have to especially implement the GraphQLMutationResolver. I get the following error when I try to implement file upload logic in the controller. Do you have any idea how to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions