graphql-0.7.0.0: Haskell GraphQL implementation

Safe HaskellSafe
LanguageHaskell2010

Language.GraphQL.AST.Core

Description

This is the AST meant to be executed.

Synopsis

Documentation

type Alias = Name Source #

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).

data Directive Source #

Directive.

Constructors

Directive Name Arguments 
Instances
Eq Directive Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Show Directive Source # 
Instance details

Defined in Language.GraphQL.AST.Core

type Document = NonEmpty Operation Source #

GraphQL document is a non-empty list of operations.

data Field Source #

Single GraphQL field.

Instances
Eq Field Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Methods

(==) :: Field -> Field -> Bool #

(/=) :: Field -> Field -> Bool #

Show Field Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Methods

showsPrec :: Int -> Field -> ShowS #

show :: Field -> String #

showList :: [Field] -> ShowS #

data Fragment Source #

Represents fragments and inline fragments.

Instances
Eq Fragment Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Show Fragment Source # 
Instance details

Defined in Language.GraphQL.AST.Core

type Name = Text Source #

Name.

data Operation Source #

GraphQL has 3 operation types: queries, mutations and subscribtions.

Currently only queries and mutations are supported.

Instances
Eq Operation Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Show Operation Source # 
Instance details

Defined in Language.GraphQL.AST.Core

data Selection Source #

Single selection element.

Instances
Eq Selection Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Show Selection Source # 
Instance details

Defined in Language.GraphQL.AST.Core

type TypeCondition = Name Source #

Type condition.

data Value Source #

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) 
Instances
Eq Value Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

Show Value Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

IsString Value Source # 
Instance details

Defined in Language.GraphQL.AST.Core

Methods

fromString :: String -> Value #