Skip to content

Commit

Permalink
Maintenance: Increase GQL max query depth to allow for common introsp…
Browse files Browse the repository at this point in the history
…ection queries.
  • Loading branch information
mgruner committed May 24, 2024
1 parent aff7fb7 commit 6bd2057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
4 changes: 2 additions & 2 deletions app/graphql/gql/zammad_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Gql::ZammadSchema < GraphQL::Schema
default_page_size 100
max_complexity 10_000

# The GraphQL introspection query has a depth of 13, so allow that in the development env.
max_depth Rails.env.eql?('development') ? 13 : 10
# Depth of 15 is needed for commmon introspection queries like Insomnia.
max_depth 15

TYPE_MAP = {
::Store => ::Gql::Types::StoredFileType
Expand Down
47 changes: 0 additions & 47 deletions spec/graphql/gql/zammad_schema_max_depth_spec.rb

This file was deleted.

0 comments on commit 6bd2057

Please sign in to comment.