code: private static function typeKindName(Type $type)
      {
          if ($type instanceof ScalarType) {
              return 'a Scalar type';
          }
  
          if ($type instanceof ObjectType) {
              return 'an Object type';
          }
  
          if ($type instanceof InterfaceType) {
              return 'an Interface type';
          }
  
          if ($type instanceof UnionType) {
              return 'a Union type';
          }
  
          if ($type instanceof EnumType) {
              return 'an Enum type';
          }
  
          if ($type instanceof InputObjectType) {
              return 'an Input type';
          }
  
          throw new TypeError('unknown type ' . $type->name);
      }
docs: @return string
  
  @throws TypeError