Force pagination, limit query depth and complexity

This commit is contained in:
Alberto Miedes Garcés
2017-05-29 09:47:39 +02:00
parent d4752491f8
commit 18db68a430
3 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,8 @@ class GraphqlController < ApplicationController
GraphQL::Schema.define do
query query_type
max_depth 12
max_depth 8
max_complexity 2500
end
end