Skip to content

Commit c155cb5

Browse files
CopilotKnerio
andcommitted
Increase max_depth from 15 to 20 for more headroom
Co-authored-by: Knerio <96529060+Knerio@users.noreply.github.com>
1 parent 8a0dd14 commit c155cb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/graphql/sagittarius_schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SagittariusSchema < GraphQL::Schema
55
query(Types::QueryType)
66

77
default_max_page_size 50
8-
max_depth 15
8+
max_depth 20
99
connections.add(ActiveRecord::Relation, Sagittarius::Graphql::StableConnection)
1010

1111
# For batch-loading (see https://graphql-ruby.org/dataloader/overview.html)

spec/requests/graphql/query/recursive_query_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
let(:query) do
1717
# Create a query with deep nesting that would cause recursion
1818
# Organization -> Namespace -> Parent (Organization) -> Namespace -> Parent...
19-
nested_levels = 20
19+
nested_levels = 25
2020
nested_query = 'id name'
2121

2222
nested_levels.times do

0 commit comments

Comments
 (0)