Exception: GraphQL::Testing::Helpers::FieldNotDefinedError

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

Instance Method Summary collapse

Constructor Details

#initialize(type_name:, field_name:) ⇒ FieldNotDefinedError

Returns a new instance of FieldNotDefinedError.



36
37
38
39
# File 'lib/graphql/testing/helpers.rb', line 36

def initialize(type_name:, field_name:)
  message = "`#{type_name}` has no field named `#{field_name}`; pick another name or define this field."
  super(message)
end