code: public function restoreDeletedNode($nodeId, $siteId, $parentId = null , $path = null)
      {
          $qb = $this->createQueryBuilder();
          $qb->updateMany()
              ->field('nodeId')->equals($nodeId)
              ->field('siteId')->equals($siteId)
              ->field('deleted')->set(false);
  
          if (null !== $parentId && null !== $path) {
              $qb->field('path')->set($path)
                 ->field('parentId')->set($parentId);
          }
  
          $qb->getQuery()->execute();
      }
docs: @param string $nodeId
  @param string $siteId
  @param string $parentId
  @param string $path
  
  @throws \Exception