Exception: GraphQL::Testing::Helpers::FieldNotVisibleError

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

Instance Method Summary collapse

Constructor Details

#initialize(type_name:, field_name:) ⇒ FieldNotVisibleError

Returns a new instance of FieldNotVisibleError.



22
23
24
25
# File 'lib/graphql/testing/helpers.rb', line 22

def initialize(type_name:, field_name:)
  message = "`#{type_name}.#{field_name}` should be `visible?` for this resolution, but it was not"
  super(message)
end