public function createTypeParser()
    {
        $type = $this->configType();
        if (is_array($type)) {
            return Injector::inst()->createWithArgs(
                TypeParserInterface::class . '.array',
                [
                    StaticSchema::inst()->typeName(get_class($this->owner)),
                    $type
                ]
            );
        }

        return Injector::inst()->createWithArgs(
            TypeParserInterface::class . '.string',
            [(string) $type]
        );
    }
public function createTypeParser()
    {
        $type = $this->configType();
        if (is_array($type)) {
            return Injector::inst()->createWithArgs(
                TypeParserInterface::class . '.array',
                [
                    StaticSchema::inst()->typeName(get_class($this->owner)),
                    $type
                ]
            );
        }

        return Injector::inst()->createWithArgs(
            TypeParserInterface::class . '.string',
            [(string) $type]
        );
    }
public function createTypeParser ( ) { $ type = $ this -> configType ( ) ; if ( is_array ( $ type ) ) { return Injector :: inst ( ) -> createWithArgs ( TypeParserInterface :: class . '.array' , [ StaticSchema :: inst ( ) -> typeName ( get_class ( $ this -> owner ) ) , $ type ] ) ; } return Injector :: inst ( ) -> createWithArgs ( TypeParserInterface :: class . '.string' , [ ( string ) $ type ] ) ; }
Creates the type parser, using the `graphql_type` value

@return TypeParserInterface
@throws Exception
Creates the type parser using the graphql_type value