diff --git a/app/graph/consul_schema.rb b/app/graph/consul_schema.rb index bf05f48b9..47ef8a112 100644 --- a/app/graph/consul_schema.rb +++ b/app/graph/consul_schema.rb @@ -1,6 +1,9 @@ ConsulSchema = GraphQL::Schema.define do query QueryRoot + # Reject deeply-nested queries + max_depth 7 + resolve_type -> (object, ctx) { # look up types by class name type_name = object.class.name