1
votes
 neo4j-sh start person=node(*) match person-[:HAS_STORED]->
 contact-[:HAS_NUMBER]-> (p{tn:"455"}) return contact;

==> SyntaxException: Properties on pattern elements are not allowed in MATCH.

==>

==> Think we should have better error message here? Help us by sending this query to [email protected].

==> Thank you, the Neo4j Team.

==>

==> "start person=node(*) match person-[:HAS_STORED]-> contact-[:HAS_NUMBER]->(phone{tn:"455"}) return contact"

==> ^

what this error means?

what is the other way to do this??

1

1 Answers

0
votes

Are you trying to do:

start person=node(*) 
match person-[:HAS_STORED]->contact-[:HAS_NUMBER]->(p)
where p.tn="455" 
return contact;

If you're looking for speed, do an index lookup in START:

start p=node:node_auto_index(tn="455")
match person-[:HAS_STORED]->contact-[:HAS_NUMBER]->p
return contact;