lib/graphql/schema/printer.rb in graphql-1.10.6 vs lib/graphql/schema/printer.rb in graphql-1.10.7

- old
+ new

@@ -92,23 +92,9 @@ def print_type(type) node = @document_from_schema.build_type_definition_node(type) print(node) end - def print_directive(directive) - if directive.name == "deprecated" - reason = directive.arguments.find { |arg| arg.name == "reason" } - - if reason.value == GraphQL::Schema::Directive::DEFAULT_DEPRECATION_REASON - "@deprecated" - else - "@deprecated(reason: #{reason.value.to_s.inspect})" - end - else - super - end - end - class IntrospectionPrinter < GraphQL::Language::Printer def print_schema_definition(schema) "schema {\n query: Root\n}" end end