lib/rails/graphql/directive/deprecated_directive.rb
def report_for_enum_value(event)
          return unless event.current_value.deprecated?

          value = event.current_value.to_s
          item = "#{value} value for the #{event.source.gql_name} field"
          event.request.report_error(build_message(item))
        end
# Check if the resolved enum value is marked as deprecated
Check if the resolved enum value is marked as deprecated
Check if the resolved enum value is marked as deprecated
def report_for_enum_value(event)
          return unless event.current_value.deprecated?
          value = event.current_value.to_s
          item = "#{value} value for the #{event.source.gql_name} field"
          event.request.report_error(build_message(item))
        end
def report_for_enum_value ( event ) return unless event . current_value . deprecated? value = event . current_value . to_s item = "#{value} value for the #{event.source.gql_name} field" event . request . report_error ( build_message ( item ) ) end
Check if the resolved enum value is marked as deprecated
Check if the resolved enum value is marked as deprecated
event