Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Definitions parsing responses from a GraphQL API.
Synopsis
- data GraphQLResult r = GraphQLResult {
- resultErrors :: [GraphQLError]
- resultResult :: Maybe r
- getErrors :: GraphQLResult r -> [GraphQLError]
- getResult :: GraphQLResult r -> Maybe r
Documentation
data GraphQLResult r Source #
A result of a GraphQL query.
GraphQLResult | |
|
Instances
getErrors :: GraphQLResult r -> [GraphQLError] Source #
Get the errors in the GraphQLResult
.
getResult :: GraphQLResult r -> Maybe r Source #
Get the result of the GraphQLResult
.