Module: GraphQL::Testing::Helpers::SchemaHelpers

Includes:
GraphQL::Testing::Helpers
Defined in:
lib/graphql/testing/helpers.rb

Instance Method Summary collapse

Methods included from GraphQL::Testing::Helpers

for

Instance Method Details

#run_graphql_field(field_path, object, arguments: {}, context: {}) ⇒ Object



114
115
116
# File 'lib/graphql/testing/helpers.rb', line 114

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



118
119
120
121
# File 'lib/graphql/testing/helpers.rb', line 118

def with_resolution_context(*args, **kwargs, &block)
  # schema will be added later
  super(nil, *args, **kwargs, &block)
end