lib/rails/graphql/field/proxied_field.rb
def apply_changes(**xargs, &block)
        if (deprecated = xargs[:deprecated])
          xargs[:directives] = Array.wrap(xargs[:directives])
          xargs[:directives] << Directive::DeprecatedDirective.new(
            reason: (deprecated.is_a?(String) ? deprecated : nil),
          )
        end

        @directives = GraphQL.directives_to_set(xargs[:directives], source: self) \
          if xargs.key?(:directives)

        @desc    = xargs[:desc]&.strip_heredoc&.chomp if xargs.key?(:desc)
        @enabled = xargs.fetch(:enabled, !xargs.fetch(:disabled, false)) \
          if xargs.key?(:enabled) || xargs.key?(:disabled)

        normalize_name(xargs.fetch(:alias, xargs[:as]))
        super
      end
# Allow chaging most of the general kind-independent initialize settings
Allow chaging most of the general kind-independent initialize settings
Allow chaging most of the general kind - independent initialize settings
def apply_changes(**xargs, &block)
        if (deprecated = xargs[:deprecated])
          xargs[:directives] = Array.wrap(xargs[:directives])
          xargs[:directives] << Directive::DeprecatedDirective.new(
            reason: (deprecated.is_a?(String) ? deprecated : nil),
          )
        end
        @directives = GraphQL.directives_to_set(xargs[:directives], source: self) \
          if xargs.key?(:directives)
        @desc    = xargs[:desc]&.strip_heredoc&.chomp if xargs.key?(:desc)
        @enabled = xargs.fetch(:enabled, !xargs.fetch(:disabled, false)) \
          if xargs.key?(:enabled) || xargs.key?(:disabled)
        normalize_name(xargs.fetch(:alias, xargs[:as]))
        super
      end
def apply_changes ( ** xargs , & block ) if ( deprecated = xargs [ :deprecated ] ) xargs [ :directives ] = Array . wrap ( xargs [ :directives ] ) xargs [ :directives ] << Directive :: DeprecatedDirective . new ( reason : ( deprecated . is_a? ( String ) ? deprecated : nil ) , ) end @directives = GraphQL . directives_to_set ( xargs [ :directives ] , source : self ) if xargs . key? ( :directives ) @desc = xargs [ :desc ] &. strip_heredoc &. chomp if xargs . key? ( :desc ) @enabled = xargs . fetch ( :enabled , ! xargs . fetch ( :disabled , false ) ) if xargs . key? ( :enabled ) || xargs . key? ( :disabled ) normalize_name ( xargs . fetch ( :alias , xargs [ :as ] ) ) super end
Allow chaging most of the general kind-independent initialize settings
Allow chaging most of the general kind - independent initialize settings
xargs
block