Exception: GraphQL::FieldNotDefinedError

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

Overview

This node doesn’t have a field with that name.

Instance Method Summary collapse

Constructor Details

#initialize(class_name, field_name) ⇒ FieldNotDefinedError

Returns a new instance of FieldNotDefinedError.



59
60
61
# File 'lib/graphql.rb', line 59

def initialize(class_name, field_name)
  super("#{class_name}##{field_name} was requested, but it isn't defined. Defined fields are: #{SCHEMA.field_names}")
end