title: Neo4j traversal javascript api
body: <p>I'm trying to use traversal neo4j api rest in order to solve a problem like in the image</p>
  
  <p><a href="https://drive.google.com/file/d/0B3i9KFQXzB89YXl0VkEzaDZDMHc/edit?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0B3i9KFQXzB89YXl0VkEzaDZDMHc/edit?usp=sharing</a></p>
  
  <p>I need to make a prune evaluetor based on a sum of precedent traversed node properties</p>
  
  <p>It's possible to do with traversal api rest?
  I'm searching for documentation but it's very poor in neo4j ufficial site.
  I see only a couple of example that use position object ex:position.endNode() but without explainations.</p>
  
  <p>My traversal is:</p>
  
  <pre><code>uniqueness:  node_path
  max_depth: 6
  prune_evaluator: (position.endNode().hasProperty('start') &amp;&amp; position.endNode().getProperty('start') != '****');
  return_filter: (position.endNode().hasProperty('name') &amp;&amp; position.endNode().getProperty('name') == '***');
  </code></pre>
  
  <p>I'm searching to do something like this. NB: This syntax is completely invented:</p>
  
  <pre><code>prune_evaluator: var a = (int)position.endNode().getProperty('start');
                   var b = (int)position.endNode()-&gt;getParent().getProperty('start');
                   if( a &gt; (b +10)){
                      true;
                   }else{
                      false;
                   }
  </code></pre>