class GraphQL::Introspection::Type

Included Modules

Defined in:

graphql/introspection.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail


Class Method Detail

def self.from_ast(document : Language::Document, type : Language::ASTNode) #

Instance Method Detail

def description : String | Nil #

def enum_values(include_deprecated : Bool = false) : Array(GraphQL::Introspection::EnumValue) | Nil #

ENUM only


def fields(include_deprecated : Bool = false) : Array(GraphQL::Introspection::Field) | Nil #

OBJECT and INTERFACE only


def input_fields : Array(GraphQL::Introspection::InputValue) | Nil #

INPUT_OBJECT only


def interfaces : Array(GraphQL::Introspection::Type) | Nil #

OBJECT only



def name : String | Nil #

def of_type : GraphQL::Introspection::Type | Nil #

NON_NULL and LIST only


def possible_types : Array(GraphQL::Introspection::Type) | Nil #

INTERFACE and UNION only