lib/graphql/execution/interpreter.rb in graphql-1.12.12 vs lib/graphql/execution/interpreter.rb in graphql-1.12.13

- old
+ new

@@ -16,11 +16,11 @@ # Support `Executor` :S def execute(_operation, _root_type, query) runtime = evaluate(query) sync_lazies(query: query) - runtime.response + runtime.final_result end def self.use(schema_class) if schema_class.interpreter? definition_line = caller(2, 1).first @@ -54,11 +54,11 @@ interpreter.sync_lazies(multiplex: multiplex) end def self.finish_query(query, _multiplex) { - "data" => query.context.namespace(:interpreter)[:runtime].response + "data" => query.context.namespace(:interpreter)[:runtime].final_result } end # Run the eager part of `query` # @return {Interpreter::Runtime} @@ -85,10 +85,10 @@ end queries = multiplex ? multiplex.queries : [query] final_values = queries.map do |query| runtime = query.context.namespace(:interpreter)[:runtime] # it might not be present if the query has an error - runtime ? runtime.response : nil + runtime ? runtime.final_result : nil end final_values.compact! tracer.trace("execute_query_lazy", {multiplex: multiplex, query: query}) do Interpreter::Resolve.resolve_all(final_values, multiplex.dataloader) end