Method: GraphQL::StaticValidation::UniqueDirectivesPerLocationError#to_h

Defined in:
lib/graphql/static_validation/rules/unique_directives_per_location_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/unique_directives_per_location_error.rb', line 13

def to_h
  extensions = {
    "code" => code,
    "directiveName" => directive_name
  }

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