lib/rails/graphql/field.rb
def apply_changes(**xargs, &block)
        required_items! unless xargs.fetch(:nullable, true)
        required! unless xargs.fetch(:null, true)
        disable! if xargs.fetch(:disabled, false)
        enable! if xargs.fetch(:enabled, false)

        @desc = xargs[:desc].strip_heredoc.chomp if xargs.key?(:desc)
        configure(&block) if block.present?
      end
# Apply a controlled set of changes to the field
Apply a controlled set of changes to the field
Apply a controlled set of changes to the field
def apply_changes(**xargs, &block)
        required_items! unless xargs.fetch(:nullable, true)
        required! unless xargs.fetch(:null, true)
        disable! if xargs.fetch(:disabled, false)
        enable! if xargs.fetch(:enabled, false)
        @desc = xargs[:desc].strip_heredoc.chomp if xargs.key?(:desc)
        configure(&block) if block.present?
      end
def apply_changes ( ** xargs , & block ) required_items! unless xargs . fetch ( :nullable , true ) required! unless xargs . fetch ( :null , true ) disable! if xargs . fetch ( :disabled , false ) enable! if xargs . fetch ( :enabled , false ) @desc = xargs [ :desc ] . strip_heredoc . chomp if xargs . key? ( :desc ) configure ( & block ) if block . present? end
Apply a controlled set of changes to the field
Apply a controlled set of changes to the field
xargs
block