Exception: GraphQL::ObjectType::UnresolvedTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/graphql/object_type.rb

Overview

Error raised when the value provided for a field can’t be resolved to one of the possible types for the field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_name, field_type, parent_type) ⇒ UnresolvedTypeError

Returns a new instance of UnresolvedTypeError.



69
70
71
72
73
74
# File 'lib/graphql/object_type.rb', line 69

def initialize(field_name, field_type, parent_type)
  @field_name = field_name
  @field_type = field_type
  @parent_type = parent_type
  super(exception_message)
end

Instance Attribute Details

#field_nameObject (readonly)

Returns the value of attribute field_name.



67
68
69
# File 'lib/graphql/object_type.rb', line 67

def field_name
  @field_name
end

#field_typeObject (readonly)

Returns the value of attribute field_type.



67
68
69
# File 'lib/graphql/object_type.rb', line 67

def field_type
  @field_type
end

#parent_typeObject (readonly)

Returns the value of attribute parent_type.



67
68
69
# File 'lib/graphql/object_type.rb', line 67

def parent_type
  @parent_type
end