How would i use the traversal description to do the following?
MATCH
me-[:preferred_store]->(:Store)<-[:preferred_store]-(:Member)-[:ordered]->(p:Product)
I assumed that the following worked:
.relationships( DynamicRelationshipType.withName("preferred_store"),
Direction.OUTGOING )
.relationships( DynamicRelationshipType.withName("preferred_store"),
Direction.INCOMING )
.relationships( DynamicRelationshipType.withName("ordered"),
Direction.OUTGOING )
.relationships( DynamicRelationshipType.withName("product"),
Direction.OUTGOING )
However, I am seeing that the order in which relationships() is executed
does not make a difference, it just adds the relationships to a global list
of allowed relationships for the description... how would i ensure that the
traversal only goes from preferred store, to ordered, to the product?
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.