Method: GraphQL::StaticValidation::VariablesAreInputTypesError#to_h

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

#to_hObject

A hash representation of this Message



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/graphql/static_validation/rules/variables_are_input_types_error.rb', line 15

def to_h
  extensions = {
    "code" => code,
    "typeName" => type_name,
    "variableName" => variable_name
  }

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