Skip to content
Snippets Groups Projects

[graphql] Convert to using the new query interpreter runtime

Merged Brett Walker requested to merge bw-graphql-interpreter into master
4 files
+ 90
32
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -10,7 +10,7 @@ class GitlabSchema < GraphQL::Schema
DEFAULT_MAX_DEPTH = 15
AUTHENTICATED_MAX_DEPTH = 20
if Feature.enabled?(:graphql_interpeter)
if Feature.enabled?(:graphql_interpreter)
use GraphQL::Execution::Interpreter
# And, when you have updated your analyzers:
use GraphQL::Analysis::AST
@@ -30,7 +30,7 @@ class GitlabSchema < GraphQL::Schema
use Gitlab::Graphql::Pagination::Connections
use Gitlab::Graphql::Timeout, max_seconds: Gitlab.config.gitlab.graphql_timeout
if Feature.enabled?(:graphql_interpeter)
if Feature.enabled?(:graphql_interpreter)
query_analyzer Gitlab::Graphql::QueryAnalyzers::AST::LoggerAnalyzer
query_analyzer Gitlab::Graphql::QueryAnalyzers::AST::RecursionAnalyzer
else
Loading