Module

GraphQLClient

Package
purescript-graphqlclient
Repository
purescript-graphqlclient/purescript-graphqlclient

Re-exports from GraphQLClient.Argument

#Optional Source

data Optional x

Constructors

Instances

#DefaultInput Source

class DefaultInput a  where

Members

Instances

#DefaultInputImplementationRecord Source

class DefaultInputImplementationRecord (row :: Row Type) (list :: RowList Type) | list -> row where

Members

Instances

#ToGraphQLArgumentImplementationRecord Source

class ToGraphQLArgumentImplementationRecord (list :: RowList Type) (row :: Row Type) | list -> row where

Members

Instances

#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

Re-exports from GraphQLClient.HTTP

#RequestOptions Source

type RequestOptions = { headers :: Array RequestHeader, password :: Maybe String, timeout :: Maybe Milliseconds, username :: Maybe String, withCredentials :: Boolean }

#GraphQLError Source

data GraphQLError parsed

Constructors

#tryDecodeGraphQLResponse Source

tryDecodeGraphQLResponse :: forall parsed. (Json -> Either JsonDecodeError parsed) -> Json -> Either (GraphQLError parsed) parsed

#printGraphQLError Source

#graphqlRequestImpl Source

Re-exports from GraphQLClient.Implementation

#SelectionSet Source

data SelectionSet parentTypeLock a

Constructors

Instances

#Scope__RootSubscription Source

#Scope__RootQuery Source

#Scope__RootMutation Source

#FragmentSelectionSet 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

#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

#writeGraphQLRawField Source

#writeGraphQLArrayRawField Source