lib/graphql/execution/multiplex.rb in graphql-1.13.0 vs lib/graphql/execution/multiplex.rb in graphql-1.13.1
- old
+ new
@@ -149,9 +149,12 @@
result["errors"] = error_result
end
result
end
+ if query.context.namespace?(:__query_result_extensions__)
+ query.result_values["extensions"] = query.context.namespace(:__query_result_extensions__)
+ end
end
# use the old `query_execution_strategy` etc to run this query
def run_one_legacy(schema, query)
GraphQL::Deprecation.warn "Multiplex.run_one_legacy will be removed from GraphQL-Ruby 2.0, upgrade to the Interpreter to avoid this deprecated codepath: https://graphql-ruby.org/queries/interpreter.html"