Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Input types and values.
This module is intended to be imported qualified, to avoid name clashes
with Out
.
Synopsis
- data Argument = Argument (Maybe Text) Type (Maybe Value)
- type Arguments = HashMap Name Argument
- data InputField = InputField (Maybe Text) Type (Maybe Value)
- data InputObjectType = InputObjectType Name (Maybe Text) (HashMap Name InputField)
- data Type
- isNonNullType :: Type -> Bool
- pattern EnumBaseType :: EnumType -> Type
- pattern ListBaseType :: Type -> Type
- pattern InputObjectBaseType :: InputObjectType -> Type
- pattern ScalarBaseType :: ScalarType -> Type
Documentation
data InputField Source #
Single field of an InputObjectType
.
data InputObjectType Source #
Input object type definition.
An input object defines a structured collection of fields which may be supplied to a field argument.
Instances
Eq InputObjectType Source # | |
Defined in Language.GraphQL.Type.In (==) :: InputObjectType -> InputObjectType -> Bool # (/=) :: InputObjectType -> InputObjectType -> Bool # | |
Show InputObjectType Source # | |
Defined in Language.GraphQL.Type.In showsPrec :: Int -> InputObjectType -> ShowS # show :: InputObjectType -> String # showList :: [InputObjectType] -> ShowS # |
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).
isNonNullType :: Type -> Bool Source #
Checks whether the given input type is a non-null type.
pattern EnumBaseType :: EnumType -> Type Source #
Matches either NamedEnumType
or NonNullEnumType
.
pattern ListBaseType :: Type -> Type Source #
Matches either ListType
or NonNullListType
.
pattern InputObjectBaseType :: InputObjectType -> Type Source #
Matches either NamedInputObjectType
or NonNullInputObjectType
.
pattern ScalarBaseType :: ScalarType -> Type Source #
Matches either NamedScalarType
or NonNullScalarType
.