Module
GraphQLClient.Argument
- Package
- purescript-graphqlclient
- Repository
- purescript-graphqlclient/purescript-graphqlclient
#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
#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
#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)