Module
GraphQLClient
- Package
- purescript-graphqlclient
- Repository
- purescript-graphqlclient/purescript-graphqlclient
Re-exports from GraphQLClient.Argument
#Optional Source
data Optional x
Constructors
Instances
(ToGraphQLArgumentValue value, ToGraphQLArgumentImplementationRecord tail row, IsSymbol field, Cons field (Optional value) rowTail row) => ToGraphQLArgumentImplementationRecord (Cons field (Optional value) tail) row
(Eq a) => Eq (Optional a)
(Ord a) => Ord (Optional a)
(Show a) => Show (Optional a)
Functor Optional
DefaultInput (Optional a)
#DefaultInput Source
class DefaultInput a where
Members
defaultInput :: a
Instances
DefaultInput (Optional a)
(DefaultInputImplementationRecord row list, RowToList row list) => DefaultInput (Record row)
#DefaultInputImplementationRecord Source
class DefaultInputImplementationRecord (row :: Row Type) (list :: RowList Type) | list -> row where
Members
defaultInputImplementationRecord :: RLProxy list -> Record row
Instances
DefaultInputImplementationRecord () Nil
(DefaultInput value, DefaultInputImplementationRecord rowTail tail, IsSymbol field, Cons field value rowTail row, Lacks field rowTail) => DefaultInputImplementationRecord row (Cons field value tail)
#ToGraphQLArgumentImplementationRecord Source
class ToGraphQLArgumentImplementationRecord (list :: RowList Type) (row :: Row Type) | list -> row where
Members
toGraphQLArgumentImplementationRecord :: forall proxy. proxy list -> Record row -> Array Argument
Instances
(RowToList childRow childList, ToGraphQLArgumentImplementationRecord childList childRow, ToGraphQLArgumentImplementationRecord tail row, IsSymbol field, Cons field (Record childRow) rowTail row) => ToGraphQLArgumentImplementationRecord (Cons field (Record childRow) tail) row
(ToGraphQLArgumentValue value, ToGraphQLArgumentImplementationRecord tail row, IsSymbol field, Cons field (Optional value) rowTail row) => ToGraphQLArgumentImplementationRecord (Cons field (Optional value) tail) row
ToGraphQLArgumentImplementationRecord Nil row
(ToGraphQLArgumentValue value, ToGraphQLArgumentImplementationRecord tail row, IsSymbol field, Cons field value rowTail row) => ToGraphQLArgumentImplementationRecord (Cons field value tail) row
#ToGraphQLArgumentValue Source
class ToGraphQLArgumentValue a where
Members
toGraphQLArgumentValue :: a -> ArgumentValue
Instances
ToGraphQLArgumentValue String
ToGraphQLArgumentValue Int
ToGraphQLArgumentValue Boolean
(RowToList row list, ToGraphQLArgumentImplementationRecord list row) => ToGraphQLArgumentValue (Record row)
(ToGraphQLArgumentValue a) => ToGraphQLArgumentValue (Maybe a)
(ToGraphQLArgumentValue a) => ToGraphQLArgumentValue (Array a)
#toGraphQLArguments Source
toGraphQLArguments :: forall row list. RowToList row list => ToGraphQLArgumentImplementationRecord list row => (Record row) -> Array Argument
else instance toGraphQLArgumentValueNewtype :: (Newtype a b, ToGraphQLArgumentValue b) => ToGraphQLArgumentValue a where toGraphQLArgumentValue = toGraphQLArgumentValue <<< unwrap
Re-exports from GraphQLClient.GraphQLEnum
#GenericDecodeGraphQLEnum Source
class GenericDecodeGraphQLEnum rep where
Members
Instances
(GenericDecodeGraphQLEnum a, GenericDecodeGraphQLEnum b) => GenericDecodeGraphQLEnum (Sum a b)
(IsSymbol name) => GenericDecodeGraphQLEnum (Constructor name NoArguments)
#genericDecodeGraphQLEnum Source
genericDecodeGraphQLEnum :: forall a rep. Generic a rep => GenericDecodeGraphQLEnum rep => Json -> Either JsonDecodeError a
Re-exports from GraphQLClient.HTTP
#RequestOptions Source
type RequestOptions = { headers :: Array RequestHeader, password :: Maybe String, timeout :: Maybe Milliseconds, username :: Maybe String, withCredentials :: Boolean }
#PossiblyParsedData Source
data PossiblyParsedData parsed
Constructors
#GraphQLError__UserDetail Source
newtype GraphQLError__UserDetail
Constructors
GraphQLError__UserDetail { message :: String, otherDetails :: Object Json }
Instances
#GraphQLError Source
data GraphQLError parsed
Constructors
#tryDecodeGraphQLResponse Source
tryDecodeGraphQLResponse :: forall parsed. (Json -> Either JsonDecodeError parsed) -> Json -> Either (GraphQLError parsed) parsed
#printGraphQLError Source
printGraphQLError :: forall a. GraphQLError a -> String
#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)
#errorsOrBodyDecoder Source
errorsOrBodyDecoder :: Json -> Either JsonDecodeError (Either { dataJson :: Json, errors :: NonEmptyArray GraphQLError__UserDetail } Json)
Re-exports from GraphQLClient.Implementation
#SelectionSet Source
data SelectionSet parentTypeLock a
Constructors
SelectionSet (Array RawField) (Json -> Either JsonDecodeError a)
Instances
Functor (SelectionSet parentTypeLock)
Applicative (SelectionSet parentTypeLock)
Apply (SelectionSet parentTypeLock)
#Scope__RootQuery Source
data Scope__RootQuery
#Scope__RootMutation Source
data Scope__RootMutation
#FragmentSelectionSet Source
data FragmentSelectionSet parentTypeLock a
Constructors
#GraphQLDefaultResponseFunctorDecoder Source
class GraphQLDefaultResponseFunctorDecoder f where
Members
graphqlDefaultResponseFunctorDecoder :: forall a. (Json -> Either JsonDecodeError a) -> Json -> Either JsonDecodeError (f a)
Instances
#GraphQLDefaultResponseFunctorOrScalarDecoderTransformer Source
class GraphQLDefaultResponseFunctorOrScalarDecoderTransformer a b | b -> a where
Members
graphqlDefaultResponseFunctorOrScalarDecoderTransformer :: (Json -> Either JsonDecodeError a) -> Json -> Either JsonDecodeError b
Instances
#GraphQLDefaultResponseScalarDecoder Source
#selectionForField Source
selectionForField :: forall parentTypeLock a. String -> Array Argument -> (Json -> Either JsonDecodeError a) -> SelectionSet parentTypeLock a
#selectionForCompositeField Source
selectionForCompositeField :: forall objectTypeLock lockedTo a b. String -> Array Argument -> ((Json -> Either JsonDecodeError a) -> Json -> Either JsonDecodeError b) -> SelectionSet objectTypeLock a -> SelectionSet lockedTo b
#nonNullOrFail Source
nonNullOrFail :: forall lockedTo a. SelectionSet lockedTo (Maybe a) -> SelectionSet lockedTo a
#nonNullElementsOrFail Source
nonNullElementsOrFail :: forall lockedTo a. SelectionSet lockedTo (Array (Maybe a)) -> SelectionSet lockedTo (Array a)
#map2 Source
map2 :: forall parentTypeLock a b c. (a -> b -> c) -> SelectionSet parentTypeLock a -> SelectionSet parentTypeLock b -> SelectionSet parentTypeLock c
#getSelectionSetDecoder Source
getSelectionSetDecoder :: forall lockedTo a. SelectionSet lockedTo a -> Json -> Either JsonDecodeError a
#foldl Source
foldl :: forall a b parentTypeLock. (b -> a -> b) -> b -> Array (SelectionSet parentTypeLock a) -> SelectionSet parentTypeLock b
#exhaustiveFragmentSelection Source
exhaustiveFragmentSelection :: forall typeLock decodesTo. Array (FragmentSelectionSet typeLock decodesTo) -> SelectionSet typeLock decodesTo
#enumDecoder Source
enumDecoder :: forall a. String -> Array (Tuple String a) -> Json -> Either JsonDecodeError a
#buildFragment Source
buildFragment :: forall decodesTo selectionLock fragmentLock. String -> SelectionSet selectionLock decodesTo -> FragmentSelectionSet fragmentLock decodesTo
#bindSelectionSet Source
bindSelectionSet :: forall lockedTo a b. (a -> Either JsonDecodeError b) -> SelectionSet lockedTo a -> SelectionSet lockedTo b
Re-exports from GraphQLClient.WriteGraphQL
#WriteGraphQL Source
#isOnSpread Source
isOnSpread :: RawField -> Boolean
#isEmptyChildren Source
isEmptyChildren :: RawField -> Boolean
GraphQLError__BadStatus Affjax.StatusCode String -- status is not in >=200 && <=299 range