Exception: GraphQL::Testing::Helpers::TypeNotVisibleError

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

Instance Method Summary collapse

Constructor Details

#initialize(type_name:) ⇒ TypeNotVisibleError

Returns a new instance of TypeNotVisibleError.



15
16
17
18
# File 'lib/graphql/testing/helpers.rb', line 15

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