Skip to content
Advertisement

TypeMappingException: Multiple methods detected for operation “opName” with different return types

Working with graphql-spqr and Spring Boot, I’m trying to run the project but I run into this:

JavaScript

and I got redirected to this for help : https://github.com/leangen/graphql-spqr/wiki/Errors#operation-with-multiple-resolver-methods-of-different-types

I was not having multiple methods with the same name which triggers me, the URL in the exception is not helpful and can’t even be edited or commented.

Advertisement

Answer

Removing the protobuf Timestamp fields fix the problem!

After changing my return Object it worked out, I had to refactor com.google.protobuf.Timestamp to Date, LocalDate or even String and it works perfectly.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement