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, profile_result, method_args) ⇒ RuntimeTypesMismatchError

Returns a new instance of RuntimeTypesMismatchError.



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/graphql/schema/visibility/migration.rb', line 31

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

    #{compare_results(warden_result, profile_result)}

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

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