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

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

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

[View source] [View on GitHub]

125
126
127
128
129
130
131
# File 'lib/graphql/testing/helpers.rb', line 125

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