/**
  * This action shows all existing nodes in no particular order.
  * Since nodes is a tree structure, only showing those with no parent
  * by default might be the desired behavior but for the sake of providing
  * an example for default API features all nodes are returned.
  */
 public function listAction()
 {
     $all = $this->nodeRepository->findAll();
     $topLevel = $this->relationshipIterator->createTopLevel($all);
     $this->view->assign('value', $topLevel);
 }