lib/graphql/execution/interpreter.rb in graphql-2.1.6 vs lib/graphql/execution/interpreter.rb in graphql-2.1.7

- old
+ new

@@ -23,10 +23,10 @@ # @return [Array<Hash>] One result per query def run_all(schema, query_options, context: {}, max_complexity: schema.max_complexity) queries = query_options.map do |opts| case opts when Hash - GraphQL::Query.new(schema, nil, **opts) + schema.query_class.new(schema, nil, **opts) when GraphQL::Query opts else raise "Expected Hash or GraphQL::Query, not #{opts.class} (#{opts.inspect})" end