Method: GraphQL::StaticValidation::ArgumentNamesAreUniqueError#to_h

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

#to_hObject

A hash representation of this Message



13
14
15
16
17
18
19
20
21
22
# File 'lib/graphql/static_validation/rules/argument_names_are_unique_error.rb', line 13

def to_h
  extensions = {
    "code" => code,
    "name" => name
  }

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