简体   繁体   中英

incorrect Cypher query and the function node()

i have a problem with the following Cypher query:

match (m:Person) where m.number=42 with id(m) as var start p=node(var) return p

gives: Invalid input 'v': expected whitespace, an unsigned integer, a parameter or '*'

i just know the "number" of a "Person" and want to get the complete node of this "Person" with only one Cypher-Statement...

Thx in advance

您可以使用match语句简单地获取节点:

MATCH (m:Person) WHERE m.number = 42 RETURN m;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM