lib/graphql_rails/attributes/attribute.rb in graphql_rails-2.2.0 vs lib/graphql_rails/attributes/attribute.rb in graphql_rails-2.3.0

- old
+ new

@@ -30,41 +30,35 @@ def field_args [ field_name, type_parser.type_arg, - *description - ] + description + ].compact end def field_options { method: property.to_sym, null: optional?, camelize: camelize?, - groups: groups + groups: groups, + **deprecation_reason_params } end - def argument_args - [ - field_name, - type_parser.type_arg, - { - description: description, - required: required? - } - ] - end - protected attr_reader :initial_name private def camelize? options[:input_format] != :original && options[:attribute_name_format] != :original + end + + def deprecation_reason_params + { deprecation_reason: deprecation_reason }.compact end end end end