lib/rails/graphql/field.rb
def normalize_name(value)
          return if value.blank?

          @name = value.to_s.underscore.to_sym
          @gql_name = @name.to_s.gsub(/^_+/, '').camelize(:lower)

          if internal?
            @gql_name.prepend('__')
          elsif @name.start_with?('_')
            @gql_name.prepend('_')
          end
        end
# Ensures the consistency of the name of the field
Ensures the consistency of the name of the field
Ensures the consistency of the name of the field
def normalize_name(value)
          return if value.blank?
          @name = value.to_s.underscore.to_sym
          @gql_name = @name.to_s.gsub(/^_+/, '').camelize(:lower)
          if internal?
            @gql_name.prepend('__')
          elsif @name.start_with?('_')
            @gql_name.prepend('_')
          end
        end
def normalize_name ( value ) return if value . blank? @name = value . to_s . underscore . to_sym @gql_name = @name . to_s . gsub ( / ^_+ / , '' ) . camelize ( :lower ) if internal? @gql_name . prepend ( '__' ) elsif @name . start_with? ( '_' ) @gql_name . prepend ( '_' ) end end
Ensures the consistency of the name of the field
Ensures the consistency of the name of the field
value