GraphQL Resolvers Cannot Return Error Reference Types #4848
Labels
Good first issue
Good for newcomers
module/graphql
Issues related to Ballerina GraphQL module
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Type/Bug
Milestone
Description:
GraphQL resolver functions (
resource
/remote
) methods should be able to return custom error types. Currently, when you return a custom error, the compiler plugin throws an error.Consider the following code:
The above code does not compile and returns the following compilation error:
The text was updated successfully, but these errors were encountered: