Method: GraphQL::Query#result
- Defined in:
- lib/graphql/query.rb
#result ⇒ GraphQL::Query::Result
Get the result for this query, executing it once
279 280 281 282 283 284 |
# File 'lib/graphql/query.rb', line 279 def result if !@executed Execution::Interpreter.run_all(@schema, [self], context: @context) end @result ||= Query::Result.new(query: self, values: @result_values) end |