We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b77ee2 commit d33bfbdCopy full SHA for d33bfbd
2 files changed
lib/graphql/schema.rb
@@ -1673,7 +1673,7 @@ def add_subscription_extension_if_necessary
1673
end
1674
1675
def query_stack_error(query, err)
1676
- query.analysis_errors.push(GraphQL::AnalysisError.new("This query is too large to execute."))
+ query.context.errors.push(GraphQL::ExecutionError.new("This query is too large to execute."))
1677
1678
1679
private
spec/graphql/analysis/ast/max_query_depth_spec.rb
@@ -144,7 +144,7 @@
144
}
145
146
it "returns an error" do
147
- assert_equal ["This query is too large to execute."], query.static_errors.map(&:message)
+ assert_equal ["This query is too large to execute."], query.result["errors"].map { |err| err["message"] }
148
149
150
0 commit comments