Exception: GraphQL::Schema::Visibility::Migration::RuntimeTypesMismatchError

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

Instance Method Summary collapse

Constructor Details

#initialize(method_called, warden_result, subset_result, method_args) ⇒ RuntimeTypesMismatchError

Returns a new instance of RuntimeTypesMismatchError.



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/graphql/schema/visibility/migration.rb', line 35

def initialize(method_called, warden_result, subset_result, method_args)
  super(<<~ERR)
    Mismatch in types for `##{method_called}(#{method_args.map(&:inspect).join(", ")})`:

    #{compare_results(warden_result, subset_result)}

    Update your `.visible?` implementation to make these implementations return the same value.

    See: https://graphql-ruby.org/authorization/visibility_migration.html
  ERR
end