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.crConstant Summary
-
GRAPHQL_FIELDS =
[{:__typename, "", args, ""}] of Tuple(Symbol, String, Hash(String, String) | ::Nil, String)
Constructors
Instance Method Summary
-
#graphql_type
get the GraphQL name of this object.
- #mutation_resolver
- #mutation_resolver=(mutation_resolver)
- #query_resolver : GraphQL::ObjectType
- #query_resolver=(query_resolver)
-
#resolve_field(name : String, arguments, context : GraphQL::Schema::Context)
resolve a named field on this object with query arguments and context
-
#resolve_field(name, args, context)
This method gets called when a field is resolved on this object.
- #schema=(schema)
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
Instance Method Detail
def graphql_type
#
Description copied from module GraphQL::ObjectType
get the GraphQL name of this object. defaults to the class name
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