From 4ff2e4573e2aadc0bde5726a21e49a42e77670be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 10 Apr 2022 18:17:42 +0200 Subject: [PATCH] Remove explicit inclusions of now-default modules These modules are used by default in version 1.12.14 and so we were getting deprecation warnings: ``` DEPRECATION WARNING: GraphQL::Execution::Interpreter is now the default; remove `use GraphQL::Execution::Interpreter` from the schema definition (app/graphql/consul_schema.rb:6) DEPRECATION WARNING: GraphQL::Analysis::AST is now the default; remove `use GraphQL::Analysis::AST` from the schema definition (app/graphql/consul_schema.rb:7) DEPRECATION WARNING: GraphQL::Pagination::Connections is now the default, remove `use GraphQL::Pagination::Connections` from app/graphql/consul_schema.rb:10 ``` --- app/graphql/consul_schema.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/graphql/consul_schema.rb b/app/graphql/consul_schema.rb index 13faaaeae..3bd1e9ba9 100644 --- a/app/graphql/consul_schema.rb +++ b/app/graphql/consul_schema.rb @@ -1,11 +1,4 @@ class ConsulSchema < GraphQL::Schema mutation(Types::MutationType) query(Types::QueryType) - - # Opt in to the new runtime (default in future graphql-ruby versions) - use GraphQL::Execution::Interpreter - use GraphQL::Analysis::AST - - # Add built-in connections for pagination - use GraphQL::Pagination::Connections end