src/Schema/Conversion/DefinitionNodeConverter.php
protected function convertNamedTypeNode(NamedTypeNode $node): Type
    {
        $nodeName = $node->name->value;
        switch ($nodeName) {
            case 'ID':
                return Type::id();
            case 'Int':
                return Type::int();
            case 'Boolean':
                return Type::boolean();
            case 'Float':
                return Type::float();
            case 'String':
                return Type::string();
            default:
                return $this->typeRegistry->get($nodeName);
        }
    }
protected function convertNamedTypeNode(NamedTypeNode $node): Type
    {
        $nodeName = $node->name->value;
        switch ($nodeName) {
            case 'ID':
                return Type::id();
            case 'Int':
                return Type::int();
            case 'Boolean':
                return Type::boolean();
            case 'Float':
                return Type::float();
            case 'String':
                return Type::string();
            default:
                return $this->typeRegistry->get($nodeName);
        }
    }
protected function convertNamedTypeNode ( NamedTypeNode $ node ) : Type { $ nodeName = $ node -> name -> value ; switch ( $ nodeName ) { case 'ID' : return Type :: id ( ) ; case 'Int' : return Type :: int ( ) ; case 'Boolean' : return Type :: boolean ( ) ; case 'Float' : return Type :: float ( ) ; case 'String' : return Type :: string ( ) ; default : return $ this -> typeRegistry -> get ( $ nodeName ) ; } }
Converted named node to type.

@param  \GraphQL\Language\AST\NamedTypeNode  $node
@return \GraphQL\Type\Definition\Type
Converted named node to type .