Module
GraphQLClient.HTTP
- Package
- purescript-graphqlclient
- Repository
- purescript-graphqlclient/purescript-graphqlclient
#GraphQLError__UserDetail Source
newtype GraphQLError__UserDetail
Constructors
GraphQLError__UserDetail { message :: String, otherDetails :: Object Json }
Instances
#PossiblyParsedData Source
data PossiblyParsedData parsed
Constructors
#GraphQLError Source
data GraphQLError parsed
Constructors
#printGraphQLError Source
printGraphQLError :: forall a. GraphQLError a -> String
#errorsOrBodyDecoder Source
errorsOrBodyDecoder :: Json -> Either JsonDecodeError (Either { dataJson :: Json, errors :: NonEmptyArray GraphQLError__UserDetail } Json)
#tryDecodeGraphQLResponse Source
tryDecodeGraphQLResponse :: forall parsed. (Json -> Either JsonDecodeError parsed) -> Json -> Either (GraphQLError parsed) parsed
#RequestOptions Source
type RequestOptions = { headers :: Array RequestHeader, password :: Maybe String, timeout :: Maybe Milliseconds, username :: Maybe String, withCredentials :: Boolean }
#graphqlRequestImpl Source
graphqlRequestImpl :: forall a. URL -> RequestOptions -> String -> (Json -> Either JsonDecodeError a) -> Aff (Either (GraphQLError a) a)
#graphqlQueryRequest Source
graphqlQueryRequest :: forall a. URL -> RequestOptions -> SelectionSet Scope__RootQuery a -> Aff (Either (GraphQLError a) a)
#graphqlMutationRequest Source
graphqlMutationRequest :: forall a. URL -> RequestOptions -> SelectionSet Scope__RootMutation a -> Aff (Either (GraphQLError a) a)
GraphQLError__BadStatus Affjax.StatusCode String -- status is not in >=200 && <=299 range