| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Language.GraphQL.AST.Core
Description
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.
Represents fragments and inline fragments.
Constructors
| Fragment TypeCondition (Seq Selection) |
GraphQL has 3 operation types: queries, mutations and subscribtions.
Currently only queries and mutations are supported.
Single selection element.
Constructors
| SelectionFragment Fragment | |
| SelectionField Field |
type TypeCondition = Name Source #
Type condition.
Represents accordingly typed GraphQL values.
Constructors
| Int Int32 | |
| Float Double | GraphQL Float is double precision |
| String Text | |
| Boolean Bool | |
| Null | |
| Enum Name | |
| List [Value] | |
| Object (HashMap Name Value) |