class GraphQL::Schema::LateBoundType
A stand-in for a type which will be resolved in a given schema, by name. TODO: support argument types too, make this a public API somehow @api Private
Attributes
graphql_name[R]
name[R]
Public Class Methods
new(local_name)
click to toggle source
# File lib/graphql/schema/late_bound_type.rb, line 10 def initialize(local_name) @name = local_name end
Public Instance Methods
inspect()
click to toggle source
# File lib/graphql/schema/late_bound_type.rb, line 26 def inspect "#<LateBoundType @name=#{name}>" end
Also aliased as: to_s
to_list_type()
click to toggle source
# File lib/graphql/schema/late_bound_type.rb, line 22 def to_list_type @to_list_type ||= GraphQL::ListType.new(of_type: self) end
to_non_null_type()
click to toggle source
# File lib/graphql/schema/late_bound_type.rb, line 18 def to_non_null_type @to_non_null_type ||= GraphQL::NonNullType.new(of_type: self) end
unwrap()
click to toggle source
# File lib/graphql/schema/late_bound_type.rb, line 14 def unwrap self end