lib/rails/graphql/schema.rb
# The process to register a class and it's name on the index
The process to register a class and it's name on the index
The process to register a class and it ' s name on the index
def register!
          return if self == GraphQL::Schema
          unless registered?
            super if defined? super
            return type_map.register(self).method(:validate!)
          end
          current = type_map.fetch(:schema,
            namespaces: namespace,
            base_class: :Schema,
            exclusive: true,
          )
          raise ArgumentError, <<~MSG.squish
            The #{namespace.inspect} namespace is already assigned to "#{current.name}".
            Please change the namespace for "#{klass.name}" class.
          MSG
        end
def register! return if self == GraphQL :: Schema unless registered? super if defined? super return type_map . register ( self ) . method ( :validate! ) end current = type_map . fetch ( :schema , namespaces : namespace , base_class : :Schema , exclusive : true , ) raise ArgumentError , <<~MSG . squish 
            The  #{ namespace . inspect }  namespace is already assigned to " #{ current . name } ".
            Please change the namespace for " #{ klass . name } " class.
           MSG end
The process to register a class and it's name on the index
The process to register a class and it ' s name on the index