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