Class: GraphQL::StaticValidation::NoDefinitionsArePresentError
- Defined in:
- lib/graphql/static_validation/rules/no_definitions_are_present_error.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#code ⇒ Object
-
#initialize(message, path: nil, nodes: []) ⇒ NoDefinitionsArePresentError
constructor
A new instance of NoDefinitionsArePresentError.
-
#to_h ⇒ Object
A hash representation of this Message.
Constructor Details
#initialize(message, path: nil, nodes: []) ⇒ NoDefinitionsArePresentError
Returns a new instance of NoDefinitionsArePresentError.
5 6 7 |
# File 'lib/graphql/static_validation/rules/no_definitions_are_present_error.rb', line 5 def initialize(, path: nil, nodes: []) super(, path: path, nodes: nodes) end |
Instance Method Details
#code ⇒ Object
20 21 22 |
# File 'lib/graphql/static_validation/rules/no_definitions_are_present_error.rb', line 20 def code "queryContainsSchemaDefinitions" end |
#to_h ⇒ Object
A hash representation of this Message
10 11 12 13 14 15 16 17 18 |
# File 'lib/graphql/static_validation/rules/no_definitions_are_present_error.rb', line 10 def to_h extensions = { "code" => code, } super.merge({ "extensions" => extensions }) end |