Method: GraphQL::StaticValidation::FragmentSpreadsArePossibleError#to_h

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

#to_hObject

A hash representation of this Message



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible_error.rb', line 17

def to_h
  extensions = {
    "code" => code,
    "typeName" => type_name,
    "fragmentName" => fragment_name,
    "parentName" => parent_name
  }

  super.merge({
    "extensions" => extensions
  })
end