Method: GraphQL::StaticValidation::FragmentSpreadsArePossibleError#initialize

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

#initialize(message, path: nil, nodes: [], type:, fragment_name:, parent:) ⇒ FragmentSpreadsArePossibleError

Returns a new instance of FragmentSpreadsArePossibleError.



9
10
11
12
13
14
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible_error.rb', line 9

def initialize(message, path: nil, nodes: [], type:, fragment_name:, parent:)
  super(message, path: path, nodes: nodes)
  @type_name = type
  @fragment_name = fragment_name
  @parent_name = parent
end