Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
I know how to use [Error(...)] for mutations. It's great! However, I find myself needing this for queries, too.
For example, for a query with a phone number parameter, such an error could be returned for an invalid phone number. Or if a user is not allowed to access a field deep in a graph, a suitable authorization error could be returned from this field.
Product
Hot Chocolate
Is your feature request related to a problem?
I know how to use
[Error(...)]
for mutations. It's great! However, I find myself needing this for queries, too.For example, for a query with a phone number parameter, such an error could be returned for an invalid phone number. Or if a user is not allowed to access a field deep in a graph, a suitable authorization error could be returned from this field.
The solution you'd like
Support
[Error]
for queries, too.