lib/rails/graphql/type/enum.rb
# Build a hash with deprecated values and their respective reason for
# logging and introspection purposes
Build a hash with deprecated values and their respective reason for
logging and introspection purposes
Build a hash with deprecated values and their respective reason for logging and introspection purposes
def all_deprecated_values
            @all_deprecated_values ||= begin
              all_value_directives.to_a.inject({}) do |list, (value, dirs)|
                obj = dirs.find { |dir| dir.is_a?(deprecated_klass) }
                obj ? list.merge(value => obj.args.reason) : list
              end
            end.freeze
          end
def all_deprecated_values @all_deprecated_values ||= begin all_value_directives . to_a . inject ( { } ) do | list , ( value , dirs ) | obj = dirs . find { | dir | dir . is_a? ( deprecated_klass ) } obj ? list . merge ( value => obj . args . reason ) : list end end . freeze end
Build a hash with deprecated values and their respective reason for
logging and introspection purposes
Build a hash with deprecated values and their respective reason for logging and introspection purposes