Open jdsalasbarrantes opened 2 years ago
We are running into the same issue. Do you have any solution for this?
Hi @JBO24, I ended up implementing my own version of the ValidationSchemaWiring, using only the onArgument function. Another alternative I consider was using the spring validator
Describe the bug
I'm trying to connect kotlin, spring for graphql, and the validation feature, but when I add the directive wiring, the exceptions thrown in the service layer are not being displayed correctly.
Config:
Controller:
Graphql:
When I call this endpoint, the result is an empty object, in the background, an exception is being thrown (check the controller snippet above)
But If I remove the directive wiring config:
I do get the exception as usual:
Is it something wrong with the code, or could this be a bug?