Files
grecia/app/graphql/consul_schema.rb
Javi Martín 90bb7484a5 Add max_depth limit to GraphQL queries once again
We accidentally removed this code in commit c984e666f. As mentioned in
our GraphQL documentation, limiting the depth of the queries helps
against DoS attacks.
2024-09-30 11:52:39 +02:00

7 lines
114 B
Ruby

class ConsulSchema < GraphQL::Schema
mutation(Types::MutationType)
query(Types::QueryType)
max_depth 8
end