Method: GraphQL::StaticValidation::FieldsAreDefinedOnTypeError#initialize

Defined in:
lib/graphql/static_validation/rules/fields_are_defined_on_type_error.rb

#initialize(message, path: nil, nodes: [], type:, field:) ⇒ FieldsAreDefinedOnTypeError

Returns a new instance of FieldsAreDefinedOnTypeError.



8
9
10
11
12
# File 'lib/graphql/static_validation/rules/fields_are_defined_on_type_error.rb', line 8

def initialize(message, path: nil, nodes: [], type:, field:)
  super(message, path: path, nodes: nodes)
  @type_name = type
  @field_name = field
end