GraphQL v0.2.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 top of the field def stack, or nil if empty

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

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

Functions

field_def(type_info)

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

find_field_def(schema, parent_type, field_node)
named_type(type_info, type)
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.