module GraphQL::Testing::Helpers::SchemaHelpers
Public Class Methods
Source
# File lib/graphql/testing/helpers.rb, line 165 def self.for(schema_class) Module.new do include SchemaHelpers @@schema_class_for_helpers = schema_class end end
Public Instance Methods
# File lib/graphql/testing/helpers.rb, line 156 def run_graphql_field(field_path, object, arguments: {}, context: {}, visibility_profile: nil) super(@@schema_class_for_helpers, field_path, object, arguments: arguments, context: context, visibility_profile: visibility_profile) end
Calls superclass method
GraphQL::Testing::Helpers#run_graphql_field
# File lib/graphql/testing/helpers.rb, line 160 def with_resolution_context(**kwargs, &block) # schema will be added later super(nil, **kwargs, &block) end
Calls superclass method
GraphQL::Testing::Helpers#with_resolution_context