public function getSorting(string $className): ListOfType
    {
        /** @var InputObjectType $type */
        $type = $this->getViaFactory($className, Utils::getTypeName($className) . 'Sorting', $this->sortingTypeFactory);

        return Type::listOf(Type::nonNull($type));
    }
public function getSorting(string $className): ListOfType
    {
        /** @var InputObjectType $type */
        $type = $this->getViaFactory($className, Utils::getTypeName($className) . 'Sorting', $this->sortingTypeFactory);

        return Type::listOf(Type::nonNull($type));
    }
public function getSorting ( string $ className ) : ListOfType { /** @var InputObjectType $type */ $ type = $ this -> getViaFactory ( $ className , Utils :: getTypeName ( $ className ) . 'Sorting' , $ this -> sortingTypeFactory ) ; return Type :: listOf ( Type :: nonNull ( $ type ) ) ; }
Returns a sorting input type for the given entity

This would typically be used to sort queries.

@param string $className the class name of an entity (`Post::class`)

@return ListOfType
Returns a sorting input type for the given entity