Module: GraphQL::Testing::Helpers::SchemaHelpers
- Includes:
 - GraphQL::Testing::Helpers
 
- Defined in:
 - lib/graphql/testing/helpers.rb
 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #run_graphql_field(field_path, object, arguments: {}, context: {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
 - 
  
    
      #with_resolution_context(*args, **kwargs, &block)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
 
Class Method Details
.for(schema_class) ⇒ Object
      149 150 151 152 153 154  | 
    
      # File 'lib/graphql/testing/helpers.rb', line 149 def self.for(schema_class) Module.new do include SchemaHelpers @@schema_class_for_helpers = schema_class end end  | 
  
Instance Method Details
#run_graphql_field(field_path, object, arguments: {}, context: {}) ⇒ Object
      140 141 142  | 
    
      # File 'lib/graphql/testing/helpers.rb', line 140 def run_graphql_field(field_path, object, arguments: {}, context: {}) super(@@schema_class_for_helpers, field_path, object, arguments: arguments, context: context) end  | 
  
#with_resolution_context(*args, **kwargs, &block) ⇒ Object
      144 145 146 147  | 
    
      # File 'lib/graphql/testing/helpers.rb', line 144 def with_resolution_context(*args, **kwargs, &block) # schema will be added later super(nil, *args, **kwargs, &block) end  |