class GraphQL::Schema::Introspection::IntrospectionObject

Overview

Wrap an ObjectType intercepting field resolution for __schema and __type keys

Included Modules

Defined in:

graphql-crystal/schema/schema_introspection.cr

Constant Summary

GRAPHQL_FIELDS = [{:__typename, "", args, ""}] of Tuple(Symbol, String, Hash(String, String) | ::Nil, String)

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from module GraphQL::ObjectType

graphql_type graphql_type, resolve_field(name, arguments, context) resolve_field

Instance methods inherited from class Object

debug debug

Constructor Detail

def self.new(schema : GraphQL::Schema::Schema, query_resolver) #

[View source]

Instance Method Detail

def graphql_type #
Description copied from module GraphQL::ObjectType

get the GraphQL name of this object. defaults to the class name


[View source]
def mutation_resolver #

[View source]
def mutation_resolver=(mutation_resolver) #

[View source]
def query_resolver : GraphQL::ObjectType #

[View source]
def query_resolver=(query_resolver) #

[View source]
def resolve_field(name : String, arguments, context : GraphQL::Schema::Context) #

resolve a named field on this object with query arguments and context


def resolve_field(name, args, context) #
Description copied from module GraphQL::ObjectType

This method gets called when a field is resolved on this object. The method gets automatically created for every ObjectType


[View source]
def schema=(schema) #

[View source]

Macro Detail

macro field(name, &block) #

macro field(name, description, args, typename, &block) #

macro inject #

macro injection #