graphql-maven-plugin is a Maven Plugin for GraphQL, based on graphql-java. It accelerates the development for both the client and the server, by generating the Java code. It allows a quicker development when in contract-first approach, by avoiding to code the boilerplate code.
Is there any way to recover extensions field from errors returned by a generated client?
Currently a GraphQLRequestExecutionException exception is thrown which reports only the original error message.
It would actually be useful to have the ability to custom handle the graphql error.
Is there any way to recover
extensions
field from errors returned by a generated client? Currently aGraphQLRequestExecutionException
exception is thrown which reports only the original error message. It would actually be useful to have the ability to custom handle the graphql error.For example, my response is something like:
GraphQLRequestExecutionException
only report message "Table is not migrated".