graphql-1.0.2.0: Haskell GraphQL implementation
Safe HaskellSafe
LanguageHaskell2010

Language.GraphQL.Type.In

Description

Input types and values.

This module is intended to be imported qualified, to avoid name clashes with Out.

Synopsis

Documentation

data Argument Source #

Field argument definition.

Constructors

Argument (Maybe Text) Type (Maybe Value) 

type Arguments = HashMap Name Argument Source #

Field argument definitions.

data InputField Source #

Single field of an InputObjectType.

Constructors

InputField (Maybe Text) Type (Maybe Value) 

data InputObjectType Source #

Input object type definition.

An input object defines a structured collection of fields which may be supplied to a field argument.

data Type Source #

These types may be used as input types for arguments and directives.

GraphQL distinguishes between "wrapping" and "named" types. Each wrapping type can wrap other wrapping or named types. Wrapping types are lists and Non-Null types (named types are nullable by default).

Instances

Instances details
Eq Type Source # 
Instance details

Defined in Language.GraphQL.Type.In

Methods

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

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

Show Type Source # 
Instance details

Defined in Language.GraphQL.Type.In

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

isNonNullType :: Type -> Bool Source #

Checks whether the given input type is a non-null type.

pattern ListBaseType :: Type -> Type Source #

Matches either ListType or NonNullListType.