GraphQL v0.3.0 GraphQL.Lang.AST.TypeInfo

TypeInfo maintains type metadata pertaining to the current node of a query AST, and is generated by the TypeInfoVistor.

The type information is made available to validation rules.

Summary

Functions

Return the current directive

Return the top of the field def stack, or nil if empty

Return the top of the input type stack, or nil if empty

Dereferences a type to a proper type. If the type is a List or NonNull it is dereferenced, otherwise it just returns its type argument

Return the top of the parent type stack, or nil if empty

Return the top of the type stack, or nil if empty

Functions

directive(type_info)

Return the current directive

field_def(type_info)

Return the top of the field def stack, or nil if empty.

find_field_def(schema, parent_type, field_node)
input_type(type_info)

Return the top of the input type stack, or nil if empty.

named_type(type)

Dereferences a type to a proper type. If the type is a List or NonNull it is dereferenced, otherwise it just returns its type argument.

parent_type(type_info)

Return the top of the parent type stack, or nil if empty.

type(type_info)

Return the top of the type stack, or nil if empty.