lib/rails/graphql/request.rb
# The final helper that facilitates how errors are reported
The final helper that facilitates how errors are reported
The final helper that facilitates how errors are reported
def report_error(message, **xargs)
        xargs[:path] ||= stack_to_path
        errors.add(message, **xargs)
        nil
      end
def report_error ( message , ** xargs ) xargs [ :path ] ||= stack_to_path errors . add ( message , ** xargs ) nil end
The final helper that facilitates how errors are reported
The final helper that facilitates how errors are reported
# Return nil for easier usage
message
xargs