graphql-dotnet / graphql-dotnet/graphql-client
Casting Error in GraphQL C# Library
- Dominant language
- C#
- Stars
- 648
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
We are facing a piquant situation using GraphQLClient's SendQueryAsync method to call Monday.com API. The line goes like this
var response = await graphQLClient.SendQueryAsync(request)
If the server returns a proper JSON it is all fine. However if the server returns a message like Complexity budget exhausted, query cost 30001 budget remaining 29984 out of 1000000 reset in 8 seconds, it throws a message like
```
Error converting value Complexity budget exhausted, query cost 30001 budget remaining 29984 out of 1000000 reset in 8 seconds to type GraphQL.GraphQLError. Path errors[0] line 1 position 305
```
How do we configure this graphqlclient to cast the string into GraphQL Error or are we missing something else?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.