| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GraphQL.Internal.Syntax.AST
Description
Synopsis
- newtype QueryDocument = QueryDocument {
- getDefinitions :: [Definition]
- newtype SchemaDocument = SchemaDocument [TypeDefinition]
- data Definition
- data OperationDefinition
- data Node = Node (Maybe Name) [VariableDefinition] [Directive] SelectionSet
- data VariableDefinition = VariableDefinition Variable GType (Maybe DefaultValue)
- newtype Variable = Variable Name
- type SelectionSet = [Selection]
- data Selection
- data Field = Field (Maybe Alias) Name [Argument] [Directive] SelectionSet
- type Alias = Name
- data Argument = Argument Name Value
- data FragmentSpread = FragmentSpread Name [Directive]
- data InlineFragment = InlineFragment (Maybe TypeCondition) [Directive] SelectionSet
- data FragmentDefinition = FragmentDefinition Name TypeCondition [Directive] SelectionSet
- type TypeCondition = NamedType
- data Value
- newtype StringValue = StringValue Text
- newtype ListValue = ListValue [Value]
- newtype ObjectValue = ObjectValue [ObjectField]
- data ObjectField = ObjectField Name Value
- type DefaultValue = Value
- data Directive = Directive Name [Argument]
- data GType
- newtype NamedType = NamedType Name
- newtype ListType = ListType GType
- data NonNullType
- data TypeDefinition
- = TypeDefinitionObject ObjectTypeDefinition
- | TypeDefinitionInterface InterfaceTypeDefinition
- | TypeDefinitionUnion UnionTypeDefinition
- | TypeDefinitionScalar ScalarTypeDefinition
- | TypeDefinitionEnum EnumTypeDefinition
- | TypeDefinitionInputObject InputObjectTypeDefinition
- | TypeDefinitionTypeExtension TypeExtensionDefinition
- data ObjectTypeDefinition = ObjectTypeDefinition Name Interfaces [FieldDefinition]
- type Interfaces = [NamedType]
- data FieldDefinition = FieldDefinition Name ArgumentsDefinition GType
- type ArgumentsDefinition = [InputValueDefinition]
- data InputValueDefinition = InputValueDefinition Name GType (Maybe DefaultValue)
- data InterfaceTypeDefinition = InterfaceTypeDefinition Name [FieldDefinition]
- data UnionTypeDefinition = UnionTypeDefinition Name [NamedType]
- newtype ScalarTypeDefinition = ScalarTypeDefinition Name
- data EnumTypeDefinition = EnumTypeDefinition Name [EnumValueDefinition]
- newtype EnumValueDefinition = EnumValueDefinition Name
- data InputObjectTypeDefinition = InputObjectTypeDefinition Name [InputValueDefinition]
- newtype TypeExtensionDefinition = TypeExtensionDefinition ObjectTypeDefinition
Documentation
newtype QueryDocument Source #
A QueryDocument is something a user might send us.
https://facebook.github.io/graphql/#sec-Language.Query-Document
Constructors
| QueryDocument | |
Fields
| |
Instances
| Eq QueryDocument Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: QueryDocument -> QueryDocument -> Bool # (/=) :: QueryDocument -> QueryDocument -> Bool # | |
| Show QueryDocument Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> QueryDocument -> ShowS # show :: QueryDocument -> String # showList :: [QueryDocument] -> ShowS # | |
newtype SchemaDocument Source #
A SchemaDocument is a document that defines a GraphQL schema.
Constructors
| SchemaDocument [TypeDefinition] |
Instances
| Eq SchemaDocument Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: SchemaDocument -> SchemaDocument -> Bool # (/=) :: SchemaDocument -> SchemaDocument -> Bool # | |
| Show SchemaDocument Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> SchemaDocument -> ShowS # show :: SchemaDocument -> String # showList :: [SchemaDocument] -> ShowS # | |
data Definition Source #
Instances
| Eq Definition Source # | |
Defined in GraphQL.Internal.Syntax.AST | |
| Show Definition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> Definition -> ShowS # show :: Definition -> String # showList :: [Definition] -> ShowS # | |
data OperationDefinition Source #
Constructors
| Query Node | |
| Mutation Node | |
| AnonymousQuery SelectionSet |
Instances
| Eq OperationDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: OperationDefinition -> OperationDefinition -> Bool # (/=) :: OperationDefinition -> OperationDefinition -> Bool # | |
| Show OperationDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> OperationDefinition -> ShowS # show :: OperationDefinition -> String # showList :: [OperationDefinition] -> ShowS # | |
Constructors
| Node (Maybe Name) [VariableDefinition] [Directive] SelectionSet |
data VariableDefinition Source #
Constructors
| VariableDefinition Variable GType (Maybe DefaultValue) |
Instances
| Eq VariableDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: VariableDefinition -> VariableDefinition -> Bool # (/=) :: VariableDefinition -> VariableDefinition -> Bool # | |
| Show VariableDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> VariableDefinition -> ShowS # show :: VariableDefinition -> String # showList :: [VariableDefinition] -> ShowS # | |
type SelectionSet = [Selection] Source #
Constructors
| SelectionField Field | |
| SelectionFragmentSpread FragmentSpread | |
| SelectionInlineFragment InlineFragment |
data FragmentSpread Source #
Constructors
| FragmentSpread Name [Directive] |
Instances
| Eq FragmentSpread Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: FragmentSpread -> FragmentSpread -> Bool # (/=) :: FragmentSpread -> FragmentSpread -> Bool # | |
| Show FragmentSpread Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> FragmentSpread -> ShowS # show :: FragmentSpread -> String # showList :: [FragmentSpread] -> ShowS # | |
data InlineFragment Source #
Constructors
| InlineFragment (Maybe TypeCondition) [Directive] SelectionSet |
Instances
| Eq InlineFragment Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: InlineFragment -> InlineFragment -> Bool # (/=) :: InlineFragment -> InlineFragment -> Bool # | |
| Show InlineFragment Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> InlineFragment -> ShowS # show :: InlineFragment -> String # showList :: [InlineFragment] -> ShowS # | |
data FragmentDefinition Source #
Constructors
| FragmentDefinition Name TypeCondition [Directive] SelectionSet |
Instances
| Eq FragmentDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: FragmentDefinition -> FragmentDefinition -> Bool # (/=) :: FragmentDefinition -> FragmentDefinition -> Bool # | |
| Show FragmentDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> FragmentDefinition -> ShowS # show :: FragmentDefinition -> String # showList :: [FragmentDefinition] -> ShowS # | |
type TypeCondition = NamedType Source #
Constructors
| ValueVariable Variable | |
| ValueInt Int32 | |
| ValueFloat Double | |
| ValueBoolean Bool | |
| ValueString StringValue | |
| ValueEnum Name | |
| ValueList ListValue | |
| ValueObject ObjectValue | |
| ValueNull |
newtype StringValue Source #
Constructors
| StringValue Text |
Instances
| Eq StringValue Source # | |
Defined in GraphQL.Internal.Syntax.AST | |
| Show StringValue Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> StringValue -> ShowS # show :: StringValue -> String # showList :: [StringValue] -> ShowS # | |
| Arbitrary StringValue Source # | |
Defined in GraphQL.Internal.Syntax.AST | |
newtype ObjectValue Source #
Constructors
| ObjectValue [ObjectField] |
Instances
| Eq ObjectValue Source # | |
Defined in GraphQL.Internal.Syntax.AST | |
| Show ObjectValue Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> ObjectValue -> ShowS # show :: ObjectValue -> String # showList :: [ObjectValue] -> ShowS # | |
| Arbitrary ObjectValue Source # | |
Defined in GraphQL.Internal.Syntax.AST | |
data ObjectField Source #
Constructors
| ObjectField Name Value |
Instances
| Eq ObjectField Source # | |
Defined in GraphQL.Internal.Syntax.AST | |
| Show ObjectField Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> ObjectField -> ShowS # show :: ObjectField -> String # showList :: [ObjectField] -> ShowS # | |
| Arbitrary ObjectField Source # | |
Defined in GraphQL.Internal.Syntax.AST | |
type DefaultValue = Value Source #
Constructors
| TypeNamed NamedType | |
| TypeList ListType | |
| TypeNonNull NonNullType |
Instances
| Eq NamedType Source # | |
| Ord NamedType Source # | |
| Show NamedType Source # | |
data NonNullType Source #
Constructors
| NonNullTypeNamed NamedType | |
| NonNullTypeList ListType |
Instances
| Eq NonNullType Source # | |
Defined in GraphQL.Internal.Syntax.AST | |
| Ord NonNullType Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods compare :: NonNullType -> NonNullType -> Ordering # (<) :: NonNullType -> NonNullType -> Bool # (<=) :: NonNullType -> NonNullType -> Bool # (>) :: NonNullType -> NonNullType -> Bool # (>=) :: NonNullType -> NonNullType -> Bool # max :: NonNullType -> NonNullType -> NonNullType # min :: NonNullType -> NonNullType -> NonNullType # | |
| Show NonNullType Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> NonNullType -> ShowS # show :: NonNullType -> String # showList :: [NonNullType] -> ShowS # | |
data TypeDefinition Source #
Constructors
Instances
| Eq TypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: TypeDefinition -> TypeDefinition -> Bool # (/=) :: TypeDefinition -> TypeDefinition -> Bool # | |
| Show TypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> TypeDefinition -> ShowS # show :: TypeDefinition -> String # showList :: [TypeDefinition] -> ShowS # | |
data ObjectTypeDefinition Source #
Constructors
| ObjectTypeDefinition Name Interfaces [FieldDefinition] |
Instances
| Eq ObjectTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: ObjectTypeDefinition -> ObjectTypeDefinition -> Bool # (/=) :: ObjectTypeDefinition -> ObjectTypeDefinition -> Bool # | |
| Show ObjectTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> ObjectTypeDefinition -> ShowS # show :: ObjectTypeDefinition -> String # showList :: [ObjectTypeDefinition] -> ShowS # | |
type Interfaces = [NamedType] Source #
data FieldDefinition Source #
Constructors
| FieldDefinition Name ArgumentsDefinition GType |
Instances
| Eq FieldDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: FieldDefinition -> FieldDefinition -> Bool # (/=) :: FieldDefinition -> FieldDefinition -> Bool # | |
| Show FieldDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> FieldDefinition -> ShowS # show :: FieldDefinition -> String # showList :: [FieldDefinition] -> ShowS # | |
type ArgumentsDefinition = [InputValueDefinition] Source #
data InputValueDefinition Source #
Constructors
| InputValueDefinition Name GType (Maybe DefaultValue) |
Instances
| Eq InputValueDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: InputValueDefinition -> InputValueDefinition -> Bool # (/=) :: InputValueDefinition -> InputValueDefinition -> Bool # | |
| Show InputValueDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> InputValueDefinition -> ShowS # show :: InputValueDefinition -> String # showList :: [InputValueDefinition] -> ShowS # | |
data InterfaceTypeDefinition Source #
Constructors
| InterfaceTypeDefinition Name [FieldDefinition] |
Instances
| Eq InterfaceTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: InterfaceTypeDefinition -> InterfaceTypeDefinition -> Bool # (/=) :: InterfaceTypeDefinition -> InterfaceTypeDefinition -> Bool # | |
| Show InterfaceTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> InterfaceTypeDefinition -> ShowS # show :: InterfaceTypeDefinition -> String # showList :: [InterfaceTypeDefinition] -> ShowS # | |
data UnionTypeDefinition Source #
Constructors
| UnionTypeDefinition Name [NamedType] |
Instances
| Eq UnionTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: UnionTypeDefinition -> UnionTypeDefinition -> Bool # (/=) :: UnionTypeDefinition -> UnionTypeDefinition -> Bool # | |
| Show UnionTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> UnionTypeDefinition -> ShowS # show :: UnionTypeDefinition -> String # showList :: [UnionTypeDefinition] -> ShowS # | |
newtype ScalarTypeDefinition Source #
Constructors
| ScalarTypeDefinition Name |
Instances
| Eq ScalarTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: ScalarTypeDefinition -> ScalarTypeDefinition -> Bool # (/=) :: ScalarTypeDefinition -> ScalarTypeDefinition -> Bool # | |
| Show ScalarTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> ScalarTypeDefinition -> ShowS # show :: ScalarTypeDefinition -> String # showList :: [ScalarTypeDefinition] -> ShowS # | |
data EnumTypeDefinition Source #
Constructors
| EnumTypeDefinition Name [EnumValueDefinition] |
Instances
| Eq EnumTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: EnumTypeDefinition -> EnumTypeDefinition -> Bool # (/=) :: EnumTypeDefinition -> EnumTypeDefinition -> Bool # | |
| Show EnumTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> EnumTypeDefinition -> ShowS # show :: EnumTypeDefinition -> String # showList :: [EnumTypeDefinition] -> ShowS # | |
newtype EnumValueDefinition Source #
Constructors
| EnumValueDefinition Name |
Instances
| Eq EnumValueDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: EnumValueDefinition -> EnumValueDefinition -> Bool # (/=) :: EnumValueDefinition -> EnumValueDefinition -> Bool # | |
| Show EnumValueDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> EnumValueDefinition -> ShowS # show :: EnumValueDefinition -> String # showList :: [EnumValueDefinition] -> ShowS # | |
data InputObjectTypeDefinition Source #
Constructors
| InputObjectTypeDefinition Name [InputValueDefinition] |
Instances
| Eq InputObjectTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: InputObjectTypeDefinition -> InputObjectTypeDefinition -> Bool # (/=) :: InputObjectTypeDefinition -> InputObjectTypeDefinition -> Bool # | |
| Show InputObjectTypeDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> InputObjectTypeDefinition -> ShowS # show :: InputObjectTypeDefinition -> String # showList :: [InputObjectTypeDefinition] -> ShowS # | |
newtype TypeExtensionDefinition Source #
Constructors
| TypeExtensionDefinition ObjectTypeDefinition |
Instances
| Eq TypeExtensionDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods (==) :: TypeExtensionDefinition -> TypeExtensionDefinition -> Bool # (/=) :: TypeExtensionDefinition -> TypeExtensionDefinition -> Bool # | |
| Show TypeExtensionDefinition Source # | |
Defined in GraphQL.Internal.Syntax.AST Methods showsPrec :: Int -> TypeExtensionDefinition -> ShowS # show :: TypeExtensionDefinition -> String # showList :: [TypeExtensionDefinition] -> ShowS # | |