lib/rails/graphql/directive/deprecated_directive.rb
def report_for_field(event)
          return unless event.field.using?(self.class)
          item = "#{event.source.gql_name} field"
          event.request.report_error(build_message(item))
        end
# Check if the requested field is marked as deprecated
Check if the requested field is marked as deprecated
Check if the requested field is marked as deprecated
def report_for_field(event)
          return unless event.field.using?(self.class)
          item = "#{event.source.gql_name} field"
          event.request.report_error(build_message(item))
        end
def report_for_field ( event ) return unless event . field . using? ( self . class ) item = "#{event.source.gql_name} field" event . request . report_error ( build_message ( item ) ) end
Check if the requested field is marked as deprecated
Check if the requested field is marked as deprecated
event