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
name[R]
Public Class Methods
new(local_name)
click to toggle source
# File lib/graphql/schema/late_bound_type.rb, line 8 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 24 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 20 def 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 16 def 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 12 def unwrap self end