lib/graphql/execution/multiplex.rb in graphql-1.12.1 vs lib/graphql/execution/multiplex.rb in graphql-1.12.2
- old
+ new
@@ -154,10 +154,10 @@
end
end
# use the old `query_execution_strategy` etc to run this query
def run_one_legacy(schema, query)
- 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"
+ 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"
query.result_values = if !query.valid?
all_errors = query.validation_errors + query.analysis_errors + query.context.errors
if all_errors.any?
{ "errors" => all_errors.map(&:to_h) }