Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This is the AST meant to be executed.
Synopsis
- type Alias = Name
- newtype Arguments = Arguments (HashMap Name Value)
- data Directive = Directive Name Arguments
- type Document = NonEmpty Operation
- data Field = Field (Maybe Alias) Name Arguments (Seq Selection)
- data Fragment = Fragment TypeCondition (Seq Selection)
- type Name = Text
- data Operation
- data Selection
- type TypeCondition = Name
- data Value
Documentation
Alternative field name.
{ smallPic: profilePic(size: 64) bigPic: profilePic(size: 1024) }
Here "smallPic" and "bigPic" are aliases for the same field, "profilePic", used to distinquish between profile pictures with different arguments (sizes).
Argument list.
Single GraphQL field.
GraphQL has 3 operation types: queries, mutations and subscribtions.
Currently only queries and mutations are supported.
type TypeCondition = Name Source #
Type condition.
Represents accordingly typed GraphQL values.
Int Int32 | |
Float Double | GraphQL Float is double precision |
String Text | |
Boolean Bool | |
Null | |
Enum Name | |
List [Value] | |
Object (HashMap Name Value) |