lib/graphql/execution/multiplex.rb in graphql-1.8.0.pre9 vs lib/graphql/execution/multiplex.rb in graphql-1.8.0.pre10
- old
+ new
@@ -91,10 +91,10 @@
# Get the Query::Result, not the Hash
query.result
end
rescue StandardError
# Assign values here so that the query's `@executed` becomes true
- queries.map { |q| q.result_values ||= nil }
+ queries.map { |q| q.result_values ||= {} }
raise
end
# @param query [GraphQL::Query]
# @return [Hash] The initial result (may not be finished if there are lazy values)