Safe Haskell | None |
---|
IHP.GraphQL.Types
Synopsis
- data GraphQLRequest = GraphQLRequest {}
- newtype Document = Document {
- definitions :: [Definition]
- data Definition
- data TypeSystemDefinition
- = SchemaDefinition {
- queryType :: !Type
- mutationType :: !Type
- | TypeDefinition !TypeDefinition
- | DirectiveDefinition
- = SchemaDefinition {
- data TypeDefinition
- data OperationDefinition = OperationDefinition {
- operationType :: !OperationType
- name :: !(Maybe Text)
- selectionSet :: ![Selection]
- variableDefinitions :: ![VariableDefinition]
- data FieldDefinition = FieldDefinition {
- description :: !(Maybe Text)
- name :: !Text
- argumentsDefinition :: ![ArgumentDefinition]
- type_ :: Type
- data ArgumentDefinition = ArgumentDefinition {
- name :: !Text
- argumentType :: Type
- defaultValue :: Maybe Value
- data Selection
- = Field {
- alias :: !(Maybe Text)
- name :: !Text
- arguments :: ![Argument]
- directives :: !Directives
- selectionSet :: ![Selection]
- | FragmentSpread {
- fragmentName :: !Text
- = Field {
- type Directives = [Text]
- data Fragment = Fragment {
- name :: Text
- selectionSet :: ![Selection]
- data OperationType
- data VariableDefinition = VariableDefinition {
- variableName :: !Text
- variableType :: !Type
- data Argument = Argument {
- argumentName :: !Text
- argumentValue :: !Value
- data Value
- = Variable !Text
- | IntValue !Int
- | FloatValue !Double
- | StringValue !Text
- | BooleanValue !Bool
- | NullValue
- | EnumValue
- | ListValue
- | ObjectValue (HashMap Text Value)
- newtype Variables = Variables [Argument]
- data Type
Documentation
data GraphQLRequest Source #
Constructors
GraphQLRequest | |
Instances
FromJSON GraphQLRequest Source # | |
Defined in IHP.GraphQL.JSON Methods parseJSON :: Value -> Parser GraphQLRequest # parseJSONList :: Value -> Parser [GraphQLRequest] # |
Constructors
Document | |
Fields
|
data Definition Source #
Constructors
ExecutableDefinition | |
Fields | |
TypeSystemDefinition | |
Fields | |
TypeSystemExtension | |
FragmentDefinition !Fragment |
Instances
Eq Definition Source # | |
Defined in IHP.GraphQL.Types | |
Show Definition Source # | |
Defined in IHP.GraphQL.Types Methods showsPrec :: Int -> Definition -> ShowS # show :: Definition -> String showList :: [Definition] -> ShowS # |
data TypeSystemDefinition Source #
Constructors
SchemaDefinition | |
Fields
| |
TypeDefinition !TypeDefinition | |
DirectiveDefinition |
Instances
Eq TypeSystemDefinition Source # | |
Defined in IHP.GraphQL.Types Methods (==) :: TypeSystemDefinition -> TypeSystemDefinition -> Bool # (/=) :: TypeSystemDefinition -> TypeSystemDefinition -> Bool # | |
Show TypeSystemDefinition Source # | |
Defined in IHP.GraphQL.Types Methods showsPrec :: Int -> TypeSystemDefinition -> ShowS # show :: TypeSystemDefinition -> String showList :: [TypeSystemDefinition] -> ShowS # |
data TypeDefinition Source #
Constructors
Instances
Eq TypeDefinition Source # | |
Defined in IHP.GraphQL.Types Methods (==) :: TypeDefinition -> TypeDefinition -> Bool # (/=) :: TypeDefinition -> TypeDefinition -> Bool # | |
Show TypeDefinition Source # | |
Defined in IHP.GraphQL.Types Methods showsPrec :: Int -> TypeDefinition -> ShowS # show :: TypeDefinition -> String showList :: [TypeDefinition] -> ShowS # |
data OperationDefinition Source #
Constructors
OperationDefinition | |
Fields
|
Instances
Eq OperationDefinition Source # | |
Defined in IHP.GraphQL.Types Methods (==) :: OperationDefinition -> OperationDefinition -> Bool # (/=) :: OperationDefinition -> OperationDefinition -> Bool # | |
Show OperationDefinition Source # | |
Defined in IHP.GraphQL.Types Methods showsPrec :: Int -> OperationDefinition -> ShowS # show :: OperationDefinition -> String showList :: [OperationDefinition] -> ShowS # |
data FieldDefinition Source #
Constructors
FieldDefinition | |
Fields
|
Instances
Eq FieldDefinition Source # | |
Defined in IHP.GraphQL.Types Methods (==) :: FieldDefinition -> FieldDefinition -> Bool # (/=) :: FieldDefinition -> FieldDefinition -> Bool # | |
Show FieldDefinition Source # | |
Defined in IHP.GraphQL.Types Methods showsPrec :: Int -> FieldDefinition -> ShowS # show :: FieldDefinition -> String showList :: [FieldDefinition] -> ShowS # |
data ArgumentDefinition Source #
Constructors
ArgumentDefinition | |
Fields
|
Instances
Eq ArgumentDefinition Source # | |
Defined in IHP.GraphQL.Types Methods (==) :: ArgumentDefinition -> ArgumentDefinition -> Bool # (/=) :: ArgumentDefinition -> ArgumentDefinition -> Bool # | |
Show ArgumentDefinition Source # | |
Defined in IHP.GraphQL.Types Methods showsPrec :: Int -> ArgumentDefinition -> ShowS # show :: ArgumentDefinition -> String showList :: [ArgumentDefinition] -> ShowS # |
Constructors
Field | |
Fields
| |
FragmentSpread | |
Fields
|
type Directives = [Text] Source #
Constructors
Fragment | |
Fields
|
Instances
data OperationType Source #
Constructors
Query | |
Mutation | |
Subscription |
Instances
Eq OperationType Source # | |
Defined in IHP.GraphQL.Types Methods (==) :: OperationType -> OperationType -> Bool # (/=) :: OperationType -> OperationType -> Bool # | |
Show OperationType Source # | |
Defined in IHP.GraphQL.Types Methods showsPrec :: Int -> OperationType -> ShowS # show :: OperationType -> String showList :: [OperationType] -> ShowS # |
data VariableDefinition Source #
Constructors
VariableDefinition | |
Fields
|
Instances
Eq VariableDefinition Source # | |
Defined in IHP.GraphQL.Types Methods (==) :: VariableDefinition -> VariableDefinition -> Bool # (/=) :: VariableDefinition -> VariableDefinition -> Bool # | |
Show VariableDefinition Source # | |
Defined in IHP.GraphQL.Types Methods showsPrec :: Int -> VariableDefinition -> ShowS # show :: VariableDefinition -> String showList :: [VariableDefinition] -> ShowS # |
Constructors
Argument | |
Fields
|
Instances
Constructors
Variable !Text | |
IntValue !Int | |
FloatValue !Double | |
StringValue !Text | |
BooleanValue !Bool | |
NullValue | |
EnumValue | |
ListValue | |
ObjectValue (HashMap Text Value) |