Commit 0abdf377 authored by Luke Duncalfe's avatar Luke Duncalfe

Allow `max_depth` to be passed as kwarg

parent 0b885b2e
......@@ -34,7 +34,7 @@ class GitlabSchema < GraphQL::Schema
queries.each do |query|
query[:max_complexity] ||= max_query_complexity(query[:context]) unless query.key?(:max_complexity)
query[:max_depth] = max_query_depth(query[:context])
query[:max_depth] = max_query_depth(query[:context]) unless query.key?(:max_depth)
end
super(queries, **kwargs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment