We accidentally removed this code in commit c984e666f. As mentioned in
our GraphQL documentation, limiting the depth of the queries helps
against DoS attacks.
7 lines
114 B
Ruby
7 lines
114 B
Ruby
class ConsulSchema < GraphQL::Schema
|
|
mutation(Types::MutationType)
|
|
query(Types::QueryType)
|
|
|
|
max_depth 8
|
|
end
|