Hi Justine,

What you have specified is to prune traversal branches where customerId is
2, this means that the traversal will not continue further from that point,
but it doesn't mean that this position will not be returned. For that you
need to specify a "return filter" instead of or in addition to the "prune
evaluator".

The syntax for "return filter" is the same as for "prune evaluator", see:
http://components.neo4j.org/neo4j-server/stable/rest.html#Traverse

Cheers,
Tobias

On Tue, Mar 22, 2011 at 11:55 PM, Justine Mathews <
justine.math...@megree.com> wrote:

>
> Please find below the traversal syntax I am using from rest client, The
> result is not filtered by the
> customerId( relationship property)  value 2.
>
> {"order": "depth first","relationships": [
>  {
>    "type": "Friend",
>    "direction": "all"
>  }
> ],"prune evaluator": {
>  "language": "javascript",
>  "body": "position.lastRelationship().getProperty(\"customerId\") == 2;"
> }}
>
>
>
> --
> Regards,
> Justine K Mathews, MCSD.NET
> Mob: +44-(0) 7795268546
> http://www.justinemathews.com<http://www.justinemathews.com/>
> http://uk.linkedin.com/in/justinemathews
>
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Tobias Ivarsson <tobias.ivars...@neotechnology.com>
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to