Method: GraphQL::Query#result
- Defined in:
- lib/graphql/query.rb
#result ⇒ Hash
Get the result for this query, executing it once
157 158 159 160 161 162 163 164 |
# File 'lib/graphql/query.rb', line 157 def result if !@executed with_prepared_ast { Execution::Multiplex.run_queries(@schema, [self]) } end @result ||= Query::Result.new(query: self, values: @result_values) end |