lib/rails/graphql/request/component/fragment.rb
# Check if the field was assigned correctly to an output field
Check if the field was assigned correctly to an output field
Check if the field was assigned correctly to an output field
def check_assignment!
            raise ExecutionError, <<~MSG.squish unless type_klass.output_type?
              Unable to assing #{type_klass.gql_name} to "#{name}" fragment because
              it is not a output type.
            MSG
            raise ExecutionError, <<~MSG.squish if type_klass.leaf_type?
              Unable to assing #{type_klass.gql_name} to "#{name}" fragment because
              a "#{type_klass.kind}" type can not be the source of a fragmnet.
            MSG
          end
def check_assignment! raise ExecutionError , <<~MSG . squish unless type_klass . output_type? 
              Unable to assing  #{ type_klass . gql_name }  to " #{ name } " fragment because
              it is not a output type.
             MSG raise ExecutionError , <<~MSG . squish if type_klass . leaf_type? 
              Unable to assing  #{ type_klass . gql_name }  to " #{ name } " fragment because
              a " #{ type_klass . kind } " type can not be the source of a fragmnet.
             MSG end
Check if the field was assigned correctly to an output field
Check if the field was assigned correctly to an output field