Exception: GraphQL::ObjectType::UnresolvedTypeError
- 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
-
#field_name ⇒ Object
readonly
Returns the value of attribute field_name.
-
#field_type ⇒ Object
readonly
Returns the value of attribute field_type.
-
#parent_type ⇒ Object
readonly
Returns the value of attribute parent_type.
Instance Method Summary collapse
-
#initialize(field_name, field_type, parent_type) ⇒ UnresolvedTypeError
constructor
A new instance of UnresolvedTypeError.
Constructor Details
#initialize(field_name, field_type, parent_type) ⇒ UnresolvedTypeError
Returns a new instance of UnresolvedTypeError.
78 79 80 81 82 83 |
# File 'lib/graphql/object_type.rb', line 78 def initialize(field_name, field_type, parent_type) @field_name = field_name @field_type = field_type @parent_type = parent_type super() end |
Instance Attribute Details
#field_name ⇒ Object (readonly)
Returns the value of attribute field_name.
76 77 78 |
# File 'lib/graphql/object_type.rb', line 76 def field_name @field_name end |
#field_type ⇒ Object (readonly)
Returns the value of attribute field_type.
76 77 78 |
# File 'lib/graphql/object_type.rb', line 76 def field_type @field_type end |
#parent_type ⇒ Object (readonly)
Returns the value of attribute parent_type.
76 77 78 |
# File 'lib/graphql/object_type.rb', line 76 def parent_type @parent_type end |