Method: GraphQL::StaticValidation::RequiredArgumentsArePresentError#to_h

Defined in:
lib/graphql/static_validation/rules/required_arguments_are_present_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/required_arguments_are_present_error.rb', line 17

def to_h
  extensions = {
    "code" => code,
    "className" => class_name,
    "name" => name,
    "arguments" => arguments
  }

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