Exception: GraphQL::Schema::Visibility::Migration::RuntimeTypesMismatchError
- Inherits:
-
Error
- Object
- StandardError
- Error
- GraphQL::Schema::Visibility::Migration::RuntimeTypesMismatchError
- Defined in:
- lib/graphql/schema/visibility/migration.rb
Instance Method Summary collapse
-
#initialize(method_called, warden_result, profile_result, method_args) ⇒ RuntimeTypesMismatchError
constructor
A new instance of RuntimeTypesMismatchError.
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 |