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("    Mismatch in types for `#\#{method_called}(\#{method_args.map(&:inspect).join(\", \")})`:\n\n    \#{compare_results(warden_result, profile_result)}\n\n    Update your `.visible?` implementation to make these implementations return the same value.\n\n    See: https://graphql-ruby.org/authorization/visibility_migration.html\n  ERR\nend\n")