Method: GraphQL::Testing::Helpers::ResolutionAssertionContext#run_graphql_field

Defined in:
lib/graphql/testing/helpers.rb

#run_graphql_field(field_name, arguments: {}) ⇒ Object



131
132
133
134
135
136
137
# File 'lib/graphql/testing/helpers.rb', line 131

def run_graphql_field(field_name, arguments: {})
  if @schema
    @test.run_graphql_field(@schema, "#{@type_name}.#{field_name}", @object, arguments: arguments, context: @context, visibility_profile: @visibility_profile)
  else
    @test.run_graphql_field("#{@type_name}.#{field_name}", @object, arguments: arguments, context: @context, visibility_profile: @visibility_profile)
  end
end