[Feature Request] queryIndexer
should return an error if the request fails
#349
Labels
enhancement
New feature or request
🚀 Feature Request Description
aptos.queryIndexer
currently only returns the data. Either it does not exist or it is not automatically included in the type signature where a developer can see an error or error code.Motivation
aptos.queryIndexer
is a fallible API, and I think it is important for developers to be able to debug any errors that come from this endpoint.Pitch
Describe the solution you would like
aptos.queryIndexer
should always returndata
anderror
.error
can be nullable.Describe alternatives you've considered
Might need to use a GraphQL client directly
The text was updated successfully, but these errors were encountered: